code: def assert_callback_data_is_as_expected(self):
      for callback, expected_callback_data in zip(
          self.callbacks, self.expected_callbacks_data
      ):
          if len(callback.data) > 0:
              if isinstance(callback.data[0], tuple):
                  for (expected_di, expected_eo), (
                      actual_di,
                      actual_eo,
                  ) in zip(expected_callback_data, callback.data):
                      assert np.array_equal(expected_di, actual_di)
                      assert np.array_equal(expected_eo, actual_eo)
              else:
                  assert np.array_equal(
                      np.array(callback.data), expected_callback_data
                  )
          else:
              assert np.array_equal(
                  np.array([]), np.array(expected_callback_data)
              )
  
imports: import numpy
  from neuraxle.base import ExecutionMode
label_desc: Use image node_id 2 for calling the NeuraxleTestCase obj's underlying member method code with example usage: obj.assert_callback_data_is_as_expected() without return types