code: def open_resource(name):
      """Open a resource from the zoneinfo subdir for reading.
  
      Uses the pkg_resources module if available and no standard file
      found at the calculated location.
  
      It is possible to specify different location for zoneinfo
      subdir by using the PYTZ_TZDATADIR environment variable.
      """
      name_parts = name.lstrip("/").split("/")
      for part in name_parts:
          if part == os.path.pardir or os.sep in part:
              raise ValueError("Bad path segment: %r" % part)
      zoneinfo_dir = os.environ.get("PYTZ_TZDATADIR", None)
      if zoneinfo_dir is not None:
          filename = os.path.join(zoneinfo_dir, *name_parts)
      else:
          filename = os.path.join(
              os.path.dirname(__file__), "zoneinfo", *name_parts
          )
          if not os.path.exists(filename):
              # http://bugs.launchpad.net/bugs/383171 - we avoid using this
              # unless absolutely necessary to help when a broken version of
              # pkg_resources is installed.
              try:
                  import warnings
  
                  with warnings.catch_warnings():
                      warnings.filterwarnings(
                          action="ignore", category=DeprecationWarning
                      )
                      from pkg_resources import resource_stream
              except ImportError:
                  resource_stream = None
  
              if resource_stream is not None:
                  return resource_stream(__name__, "zoneinfo/" + name)
      return open(filename, "rb")
  
imports: import sys
  import datetime
  import os.path
  from pytz.exceptions import AmbiguousTimeError
  from pytz.exceptions import InvalidTimeError
  from pytz.exceptions import NonExistentTimeError
  from pytz.exceptions import UnknownTimeZoneError
  from pytz.lazy import LazyDict, LazyList, LazySet
  from pytz.tzinfo import unpickler, BaseTzInfo
  from pytz.tzfile import build_tzinfo
label_desc: Use image node_id 1 for calling a global function with example usage: open_resource(name) and returns: open, resource_stream