code: def test_flatten(in_shape, out_shape):
      X = np.random.random(in_shape)
      Y = tf_utils.tensorflow_eval(tf_utils.flatten(X))
      assert Y.shape == out_shape
  
imports: import pytest
  import numpy
  import tensorflow
  from tensorflow.errors import FailedPreconditionError
  from neupy import init
  from neupy.utils import tf_utils, asfloat
  from base import BaseTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: test_flatten(in_shape, out_shape) without return types