code: def get_datetimetz_type(values, dtype, type_):
      if values.dtype.type != np.datetime64:
          return values, type_
  
      if _pandas_api.is_datetimetz(dtype) and type_ is None:
          # If no user type passed, construct a tz-aware timestamp type
          tz = dtype.tz
          unit = dtype.unit
          type_ = pa.timestamp(unit, tz)
      elif type_ is None:
          # Trust the NumPy dtype
          type_ = pa.from_numpy_dtype(values.dtype)
  
      return values, type_
  
imports: import ast
  from collections.abc import Sequence
  from concurrent import futures
  import concurrent.futures.thread
  from copy import deepcopy
  from itertools import zip_longest
  import json
  import operator
  import re
  import warnings
  import numpy
  import pyarrow
  from pyarrow.lib import _pandas_api, frombytes
label_desc: Use image node_id 19 for calling a global function with example usage: get_datetimetz_type(values, dtype, type_) and returns: values,  type_, values,  type_