code: def _find_input_files(var, out):
      
      if isinstance(var, (list, tuple)):
          for x in var:
              out = _find_input_files(x, out)
      elif isinstance(var, dict):
          if var.get("class") == "File":
              out.append(var["path"])
              out = _find_input_files(var.get("secondaryFiles", []), out)
          for key, val in var.items():
              out = _find_input_files(val, out)
      return out
docs: Find input files within the given CWL object.