code: def get_object_by_record(record):
      
  
      # nothing to do here
      if not record:
          return None
  
      if record.get("uid"):
          return get_object_by_uid(record["uid"])
      if record.get("path"):
          return get_object_by_path(record["path"])
      if record.get("parent_path") and record.get("id"):
          path = "/".join([record["parent_path"], record["id"]])
          return get_object_by_path(path)
  
      logger.warn("get_object_by_record::No object found! record='%r'" % record)
      return None
docs: Find an object by a given record
  
      Inspects request the record to locate an object
  
      :param record: A dictionary representation of an object
      :type record: dict
      :returns: Found Object or None
      :rtype: object