code: def get_title_or_id_from_uid(uid):
      
      obj = api.get_object_by_uid(uid, default=None)
      if obj is None:
          return ""
      title_or_id = api.get_title(obj) or api.get_id(obj)
      return title_or_id
docs: Returns the title or ID from the given UID