code: def test_parse_shorthand_for_arrow_timestamp():
      data = pd.DataFrame(
          {
              "z": pd.date_range("2018-01-01", periods=5, freq="D"),
              "t": pd.date_range(
                  "2018-01-01", periods=5, freq="D"
              ).tz_localize("UTC"),
          }
      )
      # Convert to arrow-packed dtypes
      data = pa.Table.from_pandas(data).to_pandas(
          types_mapper=pd.ArrowDtype
      )
      assert parse_shorthand("z", data) == {
          "field": "z",
          "type": "temporal",
      }
      assert parse_shorthand("z", data) == {
          "field": "z",
          "type": "temporal",
      }
  
imports: import types
  from packaging.version import Version
  from importlib.metadata import version
  import numpy
  import pandas
  import pytest
  import altair
  from altair.utils.core import parse_shorthand, update_nested, infer_encoding_types
  from altair.utils.core import infer_dtype
label_desc: Use image node_id 4 for calling a global function with example usage: test_parse_shorthand_for_arrow_timestamp() without return types