code: def test_api_options(self):
      reduce_overhead_opts = torch._inductor.list_mode_options(
          "reduce-overhead"
      )
      self.assertEqual(reduce_overhead_opts["triton.cudagraphs"], True)
      self.assertEqual(
          reduce_overhead_opts.get("max_autotune", False), False
      )
  
      max_autotune_opts = torch._inductor.list_mode_options(
          "max-autotune"
      )
      self.assertEqual(max_autotune_opts["max_autotune"], True)
      self.assertEqual(max_autotune_opts["triton.cudagraphs"], True)
  
      max_autotune_opts = torch._inductor.list_mode_options(
          "max-autotune", dynamic=True
      )
      self.assertEqual(max_autotune_opts["max_autotune"], True)
      self.assertEqual(max_autotune_opts["triton.cudagraphs"], True)
  
      max_autotune_no_cudagraphs_opts = (
          torch._inductor.list_mode_options(
              "max-autotune-no-cudagraphs"
          )
      )
      self.assertEqual(
          max_autotune_no_cudagraphs_opts["max_autotune"], True
      )
      self.assertEqual(
          max_autotune_no_cudagraphs_opts.get(
              "triton.cudagraphs", False
          ),
          False,
      )
  
imports: import math
  import unittest
  import torch
  from torch._dynamo.test_case import run_tests, TestCase
  from torch._inductor import config
  from torch.testing._internal.inductor_utils import HAS_CPU
label_desc: Use image node_id 11 for calling the TestInductorConfig obj's underlying member method code with example usage: obj.test_api_options() without return types