code: def test_acceptance_array(val, validator):
      # Compute expected (tuple of tuples where color is
      # lowercase with no spaces)
      expected = [[e[0], e[1]] for e in val]
      coerce_val = validator.validate_coerce(val)
      assert coerce_val == expected
  
      expected_present = tuple([tuple(e) for e in expected])
      assert validator.present(coerce_val) == expected_present
  
file_path: plotly.py/packages/python/plotly/_plotly_utils/tests/validators/test_colorscale_validator.py
imports: import pytest
  from _plotly_utils.basevalidators import ColorscaleValidator
  from _plotly_utils import colors
  import numpy
  import inspect
  import itertools
label_desc: Use image node_id 7 for calling a global function with example usage: test_acceptance_array(val, validator) without return types