code: def get_children_of_type(typ, root):
      
  
      if type(typ) is not text:
          typ = typ.__name__
  
      return get_children(lambda x: x.__class__.__name__ == typ, root)
docs: Returns a list of all model elements of type 'typ' starting from model
      element 'root'. The search process will follow containment links only.
      Non-containing references shall not be followed.
  
      Args:
          typ(str or python class): The type of the model object we are
              looking for.
          root (model object): Python model object which is the start of the
              search process.