code: def get_fields(model, fields=None):
      
      include = [f.strip() for f in fields.split(',')] if fields else None
      return utils.get_fields(
          model,
          include
      )
docs: Assigns fields for model.