code: def test_should_display_index(self):
      with contextlib.redirect_stdout(StringIO()) as temp_stdout:
          args = self.parser.parse_args(["cheat-sheet"])
          args.func(args)
      output = temp_stdout.getvalue()
      assert ALL_COMMANDS in output
      assert SECTION_A in output
      assert SECTION_E in output
  
file_path: airflow/tests/cli/commands/test_cheat_sheet_command.py
imports: from __future__ import annotations
  import contextlib
  from io import StringIO
  from unittest import mock
  from airflow.cli import cli_parser
  from airflow.cli.cli_config import ActionCommand, CLICommand, GroupCommand
label_desc: Use image node_id 2 for calling the TestCheatSheetCommand obj's underlying member method code with example usage: obj.test_should_display_index() without return types