code: def resource_package_dir():
      """package_dir
  
      Get the resources directory in the imageio package installation
      directory.
  
      Notes
      -----
      This is a convenience method that is used by `resource_dirs` and
      imageio entry point scripts.
      """
      # Make pkg_resources optional if setuptools is not available
      try:
          # Avoid importing pkg_resources in the top level due to how slow it is
          # https://github.com/pypa/setuptools/issues/510
          import pkg_resources
      except ImportError:
          pkg_resources = None
  
      if pkg_resources:
          # The directory returned by `pkg_resources.resource_filename`
          # also works with eggs.
          pdir = pkg_resources.resource_filename("imageio", "resources")
      else:
          # If setuptools is not available, use fallback
          pdir = os.path.abspath(
              os.path.join(THIS_DIR, "..", "resources")
          )
      return pdir
  
imports: from collections import OrderedDict
  import numpy
  import os
  import re
  import struct
  import sys
  import time
  import logging
label_desc: Use image node_id 7 for calling a global function with example usage: resource_package_dir() and returns: pdir