code: def get_relative_import_files(module_file):
      """
      Get the list of all files that are needed for a given module. Note that this function recurses through the relative
      imports (if a imports b and b imports c, it will return module files for b and c).
  
      Args:
          module_file (`str` or `os.PathLike`): The module file to inspect.
      """
      no_change = False
      files_to_check = [module_file]
      all_relative_imports = []
  
      # Let's recurse through all relative imports
      while not no_change:
          new_imports = []
          for f in files_to_check:
              new_imports.extend(get_relative_imports(f))
  
          module_path = Path(module_file).parent
          new_import_files = [str(module_path / m) for m in new_imports]
          new_import_files = [
              f
              for f in new_import_files
              if f not in all_relative_imports
          ]
          files_to_check = [f"{f}.py" for f in new_import_files]
  
          no_change = len(new_import_files) == 0
          all_relative_imports.extend(files_to_check)
  
      return all_relative_imports
  
imports: import importlib
  import inspect
  import json
  import os
  import re
  import shutil
  import sys
  from pathlib import Path
  from typing import Dict, Optional, Union
  from urllib import request
  from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
  from packaging import version
  from ..None import __version__
  from .None import DIFFUSERS_DYNAMIC_MODULE_NAME, HF_MODULES_CACHE, logging
label_desc: Use image node_id 5 for calling a global function with example usage: get_relative_import_files(module_file) and returns: all_relative_imports