code: def _filter_files(dirpath):
      for root, dirs, files in walk(dirpath):
          for filename in files:
              if (
                  filename.endswith(".py")
                  and filename not in reject_names
              ):
                  if not filename.startswith("temp"):
                      file_path = os.path.join(root, filename)
                      if (
                          "HyperparameterHunterAssets/Experiments/ScriptBackups"
                          in file_path
                      ):
                          continue
                      if not any(
                          file_path.endswith(_) for _ in reject_paths
                      ):
                          yield file_path
  
imports: from datetime import datetime
  from os import getcwd, walk
  import os.path
  from subprocess import check_call, CalledProcessError
label_desc: Use image node_id 1 for calling a global function with example usage: _filter_files(dirpath) without return types