code: def test_mutually_exclusive_option() -> None:
      """Make sure `MutuallyExclusiveOption` works."""
  
      @click.command()
      @click.option(
          "--foo",
          cls=MutuallyExclusiveOption,
          mutually_exclusive=["bar"],
          help="",
      )
      @click.option(
          "--bar",
          cls=MutuallyExclusiveOption,
          mutually_exclusive=["foo"],
          help="",
      )
      def test(foo: str, bar: str) -> None:
          pass
  
      runner = CliRunner()
  
      # should work when exclusivity is respected
      result = runner.invoke(test, ["--foo", "abc"])
      assert result.exit_code == 0
      result = runner.invoke(test, ["--bar", "abc"])
      assert result.exit_code == 0
  
      # should fail when it is not respected
      result = runner.invoke(test, ["--foo", "abc", "--bar", "abc"])
      assert result.exit_code != 0
  
file_path: metricflow/metricflow/test/cli/test_custom_click_types.py
imports: from __future__ import annotations
  import click
  import pytest
  from click.testing import CliRunner
  from metricflow.cli.custom_click_types import MutuallyExclusiveOption, SequenceParamType
label_desc: Use image node_id 6 for calling a global function with example usage: test_mutually_exclusive_option() without return types