code: def test_pie_funnelarea_colorscale():
      labels = ["A", "B", "C", "D"]
      values = [3, 2, 1, 4]
      for func, colorway in zip(
          [px.sunburst, px.treemap],
          ["sunburstcolorway", "treemapcolorway"],
      ):
          # Discrete colorscale, no color arg passed
          color_seq = px.colors.sequential.Reds
          fig = func(
              names=labels,
              values=values,
              color_discrete_sequence=color_seq,
          )
          assert list(fig.layout[colorway]) == color_seq
          # Discrete colorscale, color arg passed
          color_seq = px.colors.sequential.Reds
          fig = func(
              names=labels,
              values=values,
              color=labels,
              color_discrete_sequence=color_seq,
          )
          assert np.all(
              [col in color_seq for col in fig.data[0].marker.colors]
          )
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_functions.py
imports: import plotly.express
  import plotly.graph_objects
  from numpy.testing import assert_array_equal
  import numpy
  import pandas
  import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: test_pie_funnelarea_colorscale() without return types