code: def test__eq__(eg_cmaps):
      assert eg_cmaps.a == eg_cmaps.a
      assert eg_cmaps.a == eg_cmaps.a
  
      assert eg_cmaps.a != eg_cmaps.b
      assert eg_cmaps.a != eg_cmaps.b
  
      assert eg_cmaps.singular == eg_cmaps.singular
      assert eg_cmaps.singular == eg_cmaps.singular
  
      A = AffineTransform.from_params(
          "ijk", "xyz", np.diag([4, 3, 2, 1])
      )
      B = AffineTransform.from_params(
          "ijk", "xyz", np.diag([4, 3, 2, 1])
      )
  
      assert A == B
      assert A == B
  
imports: from copy import copy
  from types import SimpleNamespace
  import numpy
  from ..coordinate_map import AffineTransform, AxisError, CoordinateMap, CoordMapMaker, CoordMapMakerError, _as_coordinate_map, _fix0, append_io_dim, axmap, compose, drop_io_dim, equivalent, input_axis_index, io_axis_indices, orth_axes, product, shifted_domain_origin, shifted_range_origin
  from ..coordinate_system import CoordinateSystem, CoordinateSystemError, CoordSysMaker
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test__eq__(eg_cmaps) without return types