code: def resource_exists(name):
      """Return true if the given resource exists"""
      try:
          if os.environ.get("PYTZ_SKIPEXISTSCHECK", ""):
              # In "standard" distributions, we can assume that
              # all the listed timezones are present. As an
              # import-speed optimization, you can set the
              # PYTZ_SKIPEXISTSCHECK flag to skip checking
              # for the presence of the resource file on disk.
              return True
          open_resource(name).close()
          return True
      except IOError:
          return False
  
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 2 for calling a global function with example usage: resource_exists(name) and returns: True, True, False