docs: def get_mor_by_property(service_instance, object_type, property_value, property_name='name', container_ref=None):
      '''
      Returns the first managed object reference having the specified property value.
  
      service_instance
          The Service Instance from which to obtain managed object references.
  
      object_type
          The type of content for which to obtain managed object references.
  
      property_value
          The name of the property for which to obtain the managed object reference.
  
      property_name
          An object property used to return the specified object reference results. Defaults to ``name``.
  
      container_ref
          An optional reference to the managed object to search under. Can either be an object of type Folder, Datacenter,
          ComputeResource, Resource Pool or HostSystem. If not specified, default behaviour is to search under the inventory
          rootFolder.
      '''
      # Get list of all managed object references with specified property
      object_list = get_mors_with_properties(service_instance, object_type, property_list=[property_name], container_ref=container_ref)
  
      for obj in object_list:
          obj_id = six.text_type(obj.get('object', '')).strip('\'"')
          if obj[property_name] == property_value or property_value == obj_id:
              return obj['object']
  
      return None