code: def fields_to_dict(obj, skip_fields=None):
      
      data = {}
      obj = api.get_object(obj)
      for field_name, field in api.get_fields(obj).items():
          if skip_fields and field_name in skip_fields:
              continue
          if field.type == "computed":
              continue
          data[field_name] = field.get(obj)
      return data
docs: Generates a dictionary with the field values of the object passed in, where
      keys are the field names. Skips computed fields