code: def _serialize_inputs(inputs):
          
          serialized_inputs = {}
          for input_id, input_value in inputs.items():
              if isinstance(input_value, list):
                  serialized_list = Task._serialize_input_list(input_value)
                  serialized_inputs[input_id] = serialized_list
              else:
                  if isinstance(input_value, File):
                      input_value = Task._to_api_file_format(input_value)
                  serialized_inputs[input_id] = input_value
          return serialized_inputs
docs: Serialize task input dictionary