code: def gettz(name):
      """
      This retrieves a time zone from the local zoneinfo tarball that is packaged
      with dateutil.
  
      :param name:
          An IANA-style time zone name, as found in the zoneinfo file.
  
      :return:
          Returns a :class:`dateutil.tz.tzfile` time zone object.
  
      .. warning::
          It is generally inadvisable to use this function, and it is only
          provided for API compatibility with earlier versions. This is *not*
          equivalent to ``dateutil.tz.gettz()``, which selects an appropriate
          time zone based on the inputs, favoring system zoneinfo. This is ONLY
          for accessing the dateutil-specific zoneinfo (which may be out of
          date compared to the system zoneinfo).
  
      .. deprecated:: 2.6
          If you need to use a specific zoneinfofile over the system zoneinfo,
          instantiate a :class:`dateutil.zoneinfo.ZoneInfoFile` object and call
          :func:`dateutil.zoneinfo.ZoneInfoFile.get(name)` instead.
  
          Use :func:`get_zonefile_instance` to retrieve an instance of the
          dateutil-provided zoneinfo.
      """
      warnings.warn(
          "zoneinfo.gettz() will be removed in future versions, "
          "to use the dateutil-provided zoneinfo files, instantiate a "
          "ZoneInfoFile object and use ZoneInfoFile.zones.get() "
          "instead. See the documentation for details.",
          DeprecationWarning,
      )
  
      if len(_CLASS_ZONE_INSTANCE) == 0:
          _CLASS_ZONE_INSTANCE.append(
              ZoneInfoFile(getzoneinfofile_stream())
          )
      return _CLASS_ZONE_INSTANCE[0].zones.get(name)
  
file_path: catboost/contrib/python/python-dateutil/py2/dateutil/zoneinfo/__init__.py
imports: import warnings
  import json
  from tarfile import TarFile
  from pkgutil import get_data
  from io import BytesIO
  from dateutil.tz import tzfile
label_desc: Use image node_id 3 for calling a global function with example usage: gettz(name) and returns: _CLASS_ZONE_INSTANCE