code: def test_kwargs_local_files_only(self):
      repo = "hf-internal-testing/tiny-stable-diffusion-torch"
      tmpdirname = DiffusionPipeline.download(repo)
      tmpdirname = Path(tmpdirname)
  
      # edit commit_id to so that it's not the latest commit
      commit_id = tmpdirname.name
      new_commit_id = commit_id + "hug"
  
      ref_dir = tmpdirname.parent.parent / "refs/main"
      with open(ref_dir, "w") as f:
          f.write(new_commit_id)
  
      new_tmpdirname = tmpdirname.parent / new_commit_id
      os.rename(tmpdirname, new_tmpdirname)
  
      try:
          AutoPipelineForText2Image.from_pretrained(
              repo, local_files_only=True
          )
      except OSError:
          assert False, "not able to load local files"
  
      shutil.rmtree(tmpdirname.parent.parent)
  
imports: import gc
  import os
  import shutil
  import unittest
  from collections import OrderedDict
  from pathlib import Path
  import torch
  from diffusers import AutoPipelineForImage2Image, AutoPipelineForInpainting, AutoPipelineForText2Image, ControlNetModel, DiffusionPipeline
  from diffusers.pipelines.auto_pipeline import AUTO_IMAGE2IMAGE_PIPELINES_MAPPING, AUTO_INPAINT_PIPELINES_MAPPING, AUTO_TEXT2IMAGE_PIPELINES_MAPPING
  from diffusers.utils.testing_utils import slow
label_desc: Use image node_id 4 for calling the AutoPipelineFastTest obj's underlying member method code with example usage: obj.test_kwargs_local_files_only() without return types