code: def _path(data_module, data_file_name):
      if sys.version_info >= (3, 9):
          return resources.as_file(
              resources.files(data_module).joinpath(data_file_name)
          )
      else:
          return resources.path(data_module, data_file_name)
  
imports: import sys
  from importlib import resources
  import numpy
  import scipy
  import scipy.sparse.linalg
  import scipy.stats
  import threadpoolctl
  import sklearn
  from ..externals._packaging.version import parse
  from .deprecation import deprecated
label_desc: Use image node_id 11 for calling a global function with example usage: _path(data_module, data_file_name) and returns: resources, resources