code: def test_equality(equality_fields):
      # Use assertTrue instead of assertEqual/assertNotEqual so we don't depend on which operator (__eq__ or __ne__)
      # actual implementation of assert uses
      assert equality_fields.string1 == equality_fields.string2
      assert equality_fields.string1 == equality_fields.string_implicit
      assert equality_fields.int1 == equality_fields.int2
      assert equality_fields.string1 != equality_fields.other_string
      assert (
          equality_fields.other_string
          != equality_fields.string_implicit
      )
      assert equality_fields.int1 != equality_fields.other_int
      assert (
          equality_fields.string_nullable
          != equality_fields.string_implicit
      )
  
imports: from __future__ import division
  from decimal import Decimal
  import numpy
  import pyarrow
  import pyarrow.parquet
  import pytest
  from pyspark import Row
  from pyspark.sql.types import StringType, IntegerType, DecimalType, ShortType, LongType
  from petastorm.codecs import ScalarCodec, NdarrayCodec
  from petastorm.unischema import Unischema, UnischemaField, dict_to_spark_row, insert_explicit_nulls, match_unischema_fields, _new_gt_255_compatible_namedtuple, _fullmatch
  from unittest import mock
label_desc: Use image node_id 31 for calling a global function with example usage: test_equality(equality_fields) without return types