code: def get_test_resources_directory(file):
      folder = os.path.dirname(tests.frontend.__file__)
      return os.path.abspath(
          os.path.join(folder, "resources/modules", file)
      )
  
imports: import logging
  import base64
  import hashlib
  import numpy
  import os
  import unittest
  import tempfile
  import functools
  import scipy.io.matlab.mio
  import numpy
  import skimage.io
  from urllib.request import URLopener
  import cellprofiler_core.utilities.legacy
  from cellprofiler_core.pipeline import ImageFile
  import tests.frontend
label_desc: Use image node_id 2 for calling a global function with example usage: get_test_resources_directory(file) and returns: os