code: def test_acceptance_sequence(seqence_colorscale, validator):
      # Get expected value of named colorscale
      d = len(seqence_colorscale) - 1
      expected = [
          [(1.0 * i) / (1.0 * d), x]
          for i, x in enumerate(seqence_colorscale)
      ]
  
      # Accepted as is
      assert validator.validate_coerce(seqence_colorscale) == expected
  
      # Present as tuples
      expected_tuples = tuple((c[0], c[1]) for c in expected)
      assert validator.present(expected) == expected_tuples
  
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 5 for calling a global function with example usage: test_acceptance_sequence(seqence_colorscale, validator) without return types