code: def test_labels_to_array_return_values(y_list, format):
      y = format(y_list)
      labels = validation.labels_to_array(y)
      assert np.array_equal(y, labels)
  
imports: from cleanlab.internal import validation
  import numpy
  import pandas
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_labels_to_array_return_values(y_list, format) without return types