code: def test_equality(self):
      ts = self.types_to_test()
      ts2 = self.types_to_test()  # reallocates the non-primitive types
  
      for i in range(len(ts)):
          for j in range(len(ts2)):
              if i == j:
                  self.assertEqual(ts[i], ts2[j])
              else:
                  self.assertNotEqual(ts[i], ts2[j])
  
imports: from typing import Optional
  import unittest
  from hail.expr import coercer_from_dtype
  from hail.expr.types import *
  from hail.genetics import reference_genome
  from ..helpers import *
  from hail.utils.java import Env
label_desc: Use image node_id 4 for calling the Tests obj's underlying member method code with example usage: obj.test_equality() without return types