code: def clean_data(data: dict) -> dict:
      
      new_data = {}
      for key, value in data.items():
          # Verify that only explicitly passed args get passed on
          if not isinstance(value, bool) and not value:
              continue
  
          # Multiple choice command are passed as tuples, convert to list to match schema
          if isinstance(value, tuple):
              value = list(value)
          new_data[key] = value
      return new_data
docs: Removes all empty values and converts tuples into lists