code: def test_subcharts_with_same_data(method, data):
      func = getattr(alt, method)
  
      point = alt.Chart(data).mark_point().encode(x="x:Q", y="y:Q")
      line = point.mark_line()
      text = point.mark_text()
  
      chart1 = func(point, line, text)
      assert chart1.data is not alt.Undefined
      assert all(
          c.data is alt.Undefined for c in getattr(chart1, method)
      )
  
      if method != "concat":
          op = OP_DICT[method]
          chart2 = op(op(point, line), text)
          assert chart2.data is not alt.Undefined
          assert all(
              c.data is alt.Undefined for c in getattr(chart2, method)
          )
  
imports: import io
  import json
  import operator
  import os
  import pathlib
  import tempfile
  import jsonschema
  import pytest
  import pandas
  import altair.vegalite.v5
label_desc: Use image node_id 34 for calling a global function with example usage: test_subcharts_with_same_data(method, data) without return types