code: def test_hash_files_or_dirs_with_file():
      with tempfile.NamedTemporaryFile() as tmp:
          tmp.write("hashme".encode())
          hash1 = hash_files_or_dirs([f"file:///{tmp.name}"])
          # compute hash again with no change to file
          hash2 = hash_files_or_dirs([f"file:///{tmp.name}"])
          assert hash1 == hash2
  
imports: from __future__ import absolute_import
  import tempfile
  from sagemaker.workflow.pipeline_context import _PipelineConfig
  from sagemaker.workflow.pipeline_definition_config import PipelineDefinitionConfig
  from sagemaker.workflow.utilities import hash_file, hash_files_or_dirs, trim_request_dict, _collect_parameters
  from pathlib import Path
  import unittest
label_desc: Use image node_id 3 for calling a global function with example usage: test_hash_files_or_dirs_with_file() without return types