code: def _close(type, left, right):
      if type == pa.float32():
          return abs(left - right) < 1e-7
      elif type == pa.float64():
          return abs(left - right) < 1e-13
      else:
          return left == right
  
imports: import datetime
  import decimal
  from collections import OrderedDict
  import io
  import numpy
  import pytest
  import pyarrow
  from pyarrow.tests.parquet.common import _check_roundtrip, make_sample_file
  from pyarrow.fs import LocalFileSystem
  from pyarrow.tests import util
label_desc: Use image node_id 4 for calling a global function with example usage: _close(type, left, right) and returns: unknown, unknown, unknown