docs: def str_to_uuid(value):
      """
      Returns a UUID(value) if the value provided is a str.
  
      :param value: str or UUID object
      :return: UUID object
      """
      if isfunction(value):
          value = value()
  
      return UUID(value) if isinstance(value, string_types) else value