code: def _serialize_input_list(input_value):
          
          input_list = []
          for item in input_value:
              if isinstance(item, list):
                  input_list.append(Task._serialize_input_list(item))
              else:
                  if isinstance(item, File):
                      item = Task._to_api_file_format(item)
                  input_list.append(item)
          return input_list
docs: Recursively serialize task input list