code: def test_duration_type():
      # ARROW-6780
      arrays = [
          pa.array([0, 1, 2, 3], type=pa.duration(unit))
          for unit in ["s", "ms", "us", "ns"]
      ]
      table = pa.Table.from_arrays(
          arrays, ["d[s]", "d[ms]", "d[us]", "d[ns]"]
      )
  
      _check_roundtrip(table)
  
file_path: arrow/python/pyarrow/tests/parquet/test_datetime.py
imports: import datetime
  import io
  import warnings
  import numpy
  import pytest
  import pyarrow
  from pyarrow.tests.parquet.common import _check_roundtrip
label_desc: Use image node_id 13 for calling a global function with example usage: test_duration_type() without return types