code: def _contents(data_module):
      if sys.version_info >= (3, 9):
          return (
              resource.name
              for resource in resources.files(data_module).iterdir()
              if resource.is_file()
          )
      else:
          return resources.contents(data_module)
  
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 13 for calling a global function with example usage: _contents(data_module) and returns: unknown, resources