Module 'pymc' has no attribute 'Lambda'; module 'pymc' has no attribute 'Container'

Hi Cluhmann, Thank so much. Yes, really new to Pymc 4. This is helpful. Do you happen to know what is the Lambda function in the version 4 that allows me to replace pm.Lambda in the old version:
w = [pm.Categorical(“w_%i_%i” % (d,i),
p = pm.Lambda(‘phi_z_%i_%i’ % (d,i),
lambda z=z[d][i], phi=phi: phi[z]),
value=data[d][i],
observed=True)
for d in range(D) for i in range(Wd[d])]