code: def model_with_different_descendants():
      """
      Model proposed by Michael to test variable selection functionality
      From here: https://github.com/pymc-devs/pymc/pull/5634#pullrequestreview-916297509
      """
      with pm.Model() as pmodel2:
          a = pm.Normal("a")
          b = pm.Normal("b")
          pm.Normal("c", a * b)
          intermediate = pm.Deterministic("intermediate", a + b)
          pred = pm.Deterministic("pred", intermediate * 3)
  
          obs = pm.ConstantData("obs", 1.75)
  
          L = pm.Normal("L", mu=1 + 0.5 * pred, observed=obs)
  
      return pmodel2
  
imports: import warnings
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor.compile.sharedvalue import SharedVariable
  from pytensor.tensor.variable import TensorConstant
  import pymc
  from pymc.exceptions import ImputationWarning
  from pymc.model_graph import ModelGraph, model_to_graphviz, model_to_networkx
label_desc: Use image node_id 8 for calling a global function with example usage: model_with_different_descendants() and returns: pmodel2