code: def test_timestamp():
      import pandas as pd
  
      arr = pd.date_range("2000-01-01 12:34:56", periods=10).values
  
      units = ["ns", "us", "ms", "s"]
  
      for i, unit in enumerate(units):
          dtype = "datetime64[{}]".format(unit)
          arrow_arr = pa.Array.from_pandas(arr.astype(dtype))
          expected = pd.Timestamp("2000-01-01 12:34:56")
  
          assert arrow_arr[0].as_py() == expected
          assert arrow_arr[0].value * 1000**i == expected.value
  
          tz = "America/New_York"
          arrow_type = pa.timestamp(unit, tz=tz)
  
          dtype = "datetime64[{}]".format(unit)
          arrow_arr = pa.Array.from_pandas(
              arr.astype(dtype), type=arrow_type
          )
          expected = (
              pd.Timestamp("2000-01-01 12:34:56")
              .tz_localize("utc")
              .tz_convert(tz)
          )
  
          assert arrow_arr[0].as_py() == expected
          assert arrow_arr[0].value * 1000**i == expected.value
  
imports: import datetime
  import decimal
  import pytest
  import sys
  import weakref
  import numpy
  import pyarrow
  import pyarrow.compute
  from pyarrow.tests import util
label_desc: Use image node_id 21 for calling a global function with example usage: test_timestamp() without return types