code: def test_geo_interface_register_foreign_member():
      geom = {
          "geometry": {
              "coordinates": [
                  [
                      [6.90, 53.48],
                      [5.98, 51.85],
                      [6.07, 53.51],
                      [6.90, 53.48],
                  ]
              ],
              "type": "Polygon",
          },
          "id": 2,
          "properties": {"foo": "bah"},
          "type": "Feature",
      }
      feat = geom_obj(geom)
  
      with alt.data_transformers.enable(consolidate_datasets=False):
          spec = alt.Chart(feat).mark_geoshape().to_dict()
      with pytest.raises(KeyError):
          spec["data"]["values"]["id"]
      assert spec["data"]["values"]["foo"] == "bah"
  
file_path: altair/tests/vegalite/v5/test_geo_interface.py
imports: import pytest
  import altair.vegalite.v5
label_desc: Use image node_id 4 for calling a global function with example usage: test_geo_interface_register_foreign_member() without return types