code: def get_mor_by_moid(si, obj_type, obj_moid):
      '''
      Get reference to an object of specified object type and id
  
      si
          ServiceInstance for the vSphere or ESXi server (see get_service_instance)
  
      obj_type
          Type of the object (vim.StoragePod, vim.Datastore, etc)
  
      obj_moid
          ID of the object
      '''
      inventory = get_inventory(si)
      container = inventory.viewManager.CreateContainerView(inventory.rootFolder, [obj_type], True)
      for item in container.view:
          if item._moId == obj_moid:
              return item
      return Nonf get_mor_by_moid(si, obj_type, obj_moid):
      '''
      Get reference to an object of specified object type and id
  
      si
          ServiceInstance for the vSphere or ESXi server (see get_service_instance)
  
      obj_type
          Type of the object (vim.StoragePod, vim.Datastore, etc)
  
      obj_moid
          ID of the object
      '''
      inventory = get_inventory(si)
      container = inventory.viewManager.CreateContainerView(inventory.rootFolder, [obj_type], True)
      for item in container.view:
          if item._moId == obj_moid:
              return item
      return None
docs: Get reference to an object of specified object type and id
  
      si
          ServiceInstance for the vSphere or ESXi server (see get_service_instance)
  
      obj_type
          Type of the object (vim.StoragePod, vim.Datastore, etc)
  
      obj_moid
          ID of the object