code: def assert_array_lines_close(test, expected_array, array_lines):
      """Assert that the array value represented by lines is close to expected.
  
      Note that the shape of the array represented by the `array_lines` is ignored.
  
      Args:
        test: An instance of TensorFlowTestCase.
        expected_array: Expected value of the array.
        array_lines: A list of strings representing the array.
          E.g., "array([[ 1.0, 2.0 ], [ 3.0, 4.0 ]])"
          Assumes that values are separated by commas, parentheses, brackets, "|"
          characters and whitespace.
      """
      elements = []
      for line in array_lines:
          line = re.sub(_ARRAY_VALUE_SEPARATOR_REGEX, " ", line)
          elements.extend(float(s) for s in line.split())
      test.assertAllClose(np.array(expected_array).flatten(), elements)
  
imports: import re
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: assert_array_lines_close(test, expected_array, array_lines) without return types