code: def test_2d_raises_exception(self):
      X = [[1, 2], [3, 4]]
  
      with pytest.raises(ValueError) as exception_context:
          _ = fmim._convert_to_ndarray_1d(X)
  
      expected = (
          "Supplied input array has more than one non-trivial dimension"
      )
      assert exception_context.value.args[0] == expected
  
file_path: fairlearn/test/unit/utils/test_input_manipulations.py
imports: import numpy
  import pytest
  import fairlearn.utils._input_manipulations
label_desc: Use image node_id 4 for calling the TestConvertToNDArray1D obj's underlying member method code with example usage: obj.test_2d_raises_exception() without return types