code: def get_unique_named_object_in_all_models(root, name):
      
      if hasattr(root, '_tx_model_repository'):
          src = list(
              root._tx_model_repository.local_models.filename_to_model.values())
          if root not in src:
              src.append(root)
      else:
          src = [root]
  
      a = []
      for m in src:
          print("analyzing {}".format(m._tx_filename))
          a = a + get_children(
              lambda x: hasattr(x, 'name') and x.name == name, m)
  
      assert len(a) == 1
      return a[0]
docs: retrieves a unique named object (no fully qualified name)
  
      Args:
          root: start of search (if root is a model all known models are searched
                as well)
          name: name of object
  
      Returns:
          the object (if not unique, raises an error)