code: def build_model():
      # data
      failure = np.array([0.0, 1.0])
      value = np.array([1.0, 0.0])
  
      # model
      with pm.Model() as model:
          lam = pm.Exponential("lam", 1.0)
          pm.DensityDist(
              "x",
              logp,
              observed={"failure": failure, "lam": lam, "value": value},
          )
      return model
  
imports: import numpy
  import theano.tensor
  import pymc3
label_desc: Use image node_id 2 for calling a global function with example usage: build_model() and returns: model