code: def test_time_from_datetime_time():
      t1 = datetime.time(18, 0)
      t2 = datetime.time(21, 0)
  
      types = [
          pa.time32("s"),
          pa.time32("ms"),
          pa.time64("us"),
          pa.time64("ns"),
      ]
      for ty in types:
          for t in [t1, t2]:
              s = pa.scalar(t, type=ty)
              assert s.as_py() == t
  
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 14 for calling a global function with example usage: test_time_from_datetime_time() without return types