code: def test_pie_like_px():
      # Pie
      labels = ["Oxygen", "Hydrogen", "Carbon_Dioxide", "Nitrogen"]
      values = [4500, 2500, 1053, 500]
  
      fig = px.pie(names=labels, values=values)
      trace = go.Pie(labels=labels, values=values)
      _compare_figures(trace, fig)
  
      labels = [
          "Eve",
          "Cain",
          "Seth",
          "Enos",
          "Noam",
          "Abel",
          "Awan",
          "Enoch",
          "Azura",
      ]
      parents = [
          "",
          "Eve",
          "Eve",
          "Seth",
          "Seth",
          "Eve",
          "Eve",
          "Awan",
          "Eve",
      ]
      values = [10, 14, 12, 10, 2, 6, 6, 4, 4]
      # Sunburst
      fig = px.sunburst(names=labels, parents=parents, values=values)
      trace = go.Sunburst(labels=labels, parents=parents, values=values)
      _compare_figures(trace, fig)
      # Treemap
      fig = px.treemap(names=labels, parents=parents, values=values)
      trace = go.Treemap(labels=labels, parents=parents, values=values)
      _compare_figures(trace, fig)
  
      # Funnel
      x = ["A", "B", "C"]
      y = [3, 2, 1]
      fig = px.funnel(y=y, x=x)
      trace = go.Funnel(y=y, x=x)
      _compare_figures(trace, fig)
      # Funnelarea
      fig = px.funnel_area(values=y, names=x)
      trace = go.Funnelarea(values=y, labels=x)
      _compare_figures(trace, fig)
  
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 2 for calling a global function with example usage: test_pie_like_px() without return types