code: def validator():
      return ColorscaleValidator("prop", "parent")
  
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 1 for calling a global function with example usage: validator() and returns: ColorscaleValidator