code: def test_date():
      # ARROW-5125
      d1 = datetime.date(3200, 1, 1)
      d2 = datetime.date(1960, 1, 1)
  
      for ty in [pa.date32(), pa.date64()]:
          for d in [d1, d2]:
              s = pa.scalar(d, type=ty)
              assert s.as_py() == d
  
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 12 for calling a global function with example usage: test_date() without return types