code: def _assert_records_equal(actual, ref):
      assert isinstance(actual, Field)
      assert isinstance(ref, Field)
      b1 = actual.field_blobs()
      b2 = ref.field_blobs()
      assert len(b1) == len(
          b2
      ), "Records have different lengths: %d vs. %d" % (
          len(b1),
          len(b2),
      )
      for name, d1, d2 in zip(ref.field_names(), b1, b2):
          _assert_arrays_equal(
              d1, d2, err_msg="Mismatch in field %s." % name
          )
  
imports: import functools
  import operator
  import string
  import hypothesis.strategies
  import numpy
  import numpy.testing
  from caffe2.python import core, dataset, workspace
  from caffe2.python.dataset import Const
  from caffe2.python.schema import FeedRecord, FetchRecord, Field, List, Map, NewRecord, Scalar, Struct, from_blob_list
  from caffe2.python.test_util import TestCase
  from hypothesis import given
label_desc: Use image node_id 2 for calling a global function with example usage: _assert_records_equal(actual, ref) without return types