code: def _return_parsed_timezone_results(result, timezones, box, tz, name):
      """
      Return results from array_strptime if a %z or %Z directive was passed.
  
      Parameters
      ----------
      result : ndarray
          int64 date representations of the dates
      timezones : ndarray
          pytz timezone objects
      box : boolean
          True boxes result as an Index-like, False returns an ndarray
      tz : object
          None or pytz timezone object
      name : string, default None
          Name for a DatetimeIndex
  
      Returns
      -------
      tz_result : ndarray of parsed dates with timezone
          Returns:
  
          - Index-like if box=True
          - ndarray of Timestamps if box=False
  
      """
      if tz is not None:
          raise ValueError(
              "Cannot pass a tz argument when "
              "parsing strings with timezone "
              "information."
          )
      tz_results = np.array(
          [
              Timestamp(res).tz_localize(zone)
              for res, zone in zip(result, timezones)
          ]
      )
      if box:
          from pandas import Index
  
          return Index(tz_results, name=name)
      return tz_results
  
imports: from datetime import datetime, time
  from functools import partial
  import numpy
  from pandas._libs import tslib, tslibs
  from pandas._libs.tslibs import Timestamp, conversion, parsing
  from pandas._libs.tslibs.parsing import DateParseError, _format_is_iso, _guess_datetime_format, parse_time_string
  from pandas._libs.tslibs.strptime import array_strptime
  from pandas.compat import zip
  from pandas.core.dtypes.common import ensure_object, is_datetime64_dtype, is_datetime64_ns_dtype, is_datetime64tz_dtype, is_float, is_integer, is_integer_dtype, is_list_like, is_numeric_dtype, is_object_dtype, is_scalar
  from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries
  from pandas.core.dtypes.missing import notna
  from pandas import compat
  from pandas.core import algorithms
label_desc: Use image node_id 4 for calling a global function with example usage: _return_parsed_timezone_results(result, timezones, box, tz, name) and returns: tz_results, Index