code: def test_flatten_datum():
      flat = NumpyFlattenDatum()
      data = np.random.random(
          (10, 4, 5, 2)
      )  # 4D array (could be ND with N>=2).
      expected_data = np.copy(data).reshape(10, 4 * 5 * 2)  # 2D array.
  
      flat, received_data = flat.fit_transform(data)
  
      assert (received_data == expected_data).all()
  
imports: import numpy
  from neuraxle.steps.numpy import NumpyConcatenateInnerFeatures, NumpyFlattenDatum, NumpyShapePrinter, NumpyTranspose, NumpyFFT, NumpyRavel
label_desc: Use image node_id 1 for calling a global function with example usage: test_flatten_datum() without return types