code: def test_TraitedSpec_withNoFileHashing(setup_file):
      tmp_infile = setup_file
      tmpd, nme = os.path.split(tmp_infile)
      assert os.path.exists(tmp_infile)
  
      class spec2(nib.TraitedSpec):
          moo = nib.File(exists=True, hash_files=False)
          doo = nib.traits.List(nib.File(exists=True))
  
      infields = spec2(moo=nme, doo=[tmp_infile])
      hashval = infields.get_hashval(hash_method="content")
      assert hashval[1] == "8da4669ff5d72f670a46ea3e7a203215"
  
      class spec3(nib.TraitedSpec):
          moo = nib.File(exists=True, name_source="doo")
          doo = nib.traits.List(nib.File(exists=True))
  
      infields = spec3(moo=nme, doo=[tmp_infile])
      hashval1 = infields.get_hashval(hash_method="content")
  
      class spec4(nib.TraitedSpec):
          moo = nib.File(exists=True)
          doo = nib.traits.List(nib.File(exists=True))
  
      infields = spec4(moo=nme, doo=[tmp_infile])
      hashval2 = infields.get_hashval(hash_method="content")
      assert hashval1[1] != hashval2[1]
  
imports: import os
  import warnings
  import pytest
  from ....utils.filemanip import split_filename
  from ...None import base
  from ...base import traits, Undefined
  from ....interfaces import fsl
  from ...utility.wrappers import Function
  from ....pipeline import Node
  from ..specs import get_filecopy_info
label_desc: Use image node_id 14 for calling a global function with example usage: test_TraitedSpec_withNoFileHashing(setup_file) without return types