code: def test_mimetype_renderer_embed_options(chart, renderer="mimetype"):
      # check that metadata is passed appropriately
      mimetype = alt.display.VEGALITE_MIME_TYPE
      spec = chart.to_dict()
      with alt.renderers.enable(renderer):
          # Sanity check: no metadata specified
          bundle, metadata = chart._repr_mimebundle_(None, None)
          assert bundle[mimetype] == spec
          assert metadata == {}
          with alt.renderers.set_embed_options(actions=False):
              bundle, metadata = chart._repr_mimebundle_(None, None)
              assert set(bundle.keys()) == {mimetype, "text/plain"}
              assert bundle[mimetype] == spec
              assert metadata == {
                  mimetype: {"embed_options": {"actions": False}}
              }
  
file_path: altair/tests/vegalite/v5/test_renderers.py
imports: import json
  import pytest
  import altair.vegalite.v5
label_desc: Use image node_id 3 for calling a global function with example usage: test_mimetype_renderer_embed_options(chart, renderer) without return types