code: def test_format_with_format_descriptor(self):
      descriptor = (
          TableDescriptor.for_connector("test-connector")
          .schema(Schema.new_builder().build())
          .format(
              FormatDescriptor.for_format("test-format")
              .option(self.option_a, True)
              .option(self.option_b, 42)
              .option("c", "C")
              .build(),
              self.key_format,
          )
          .build()
      )
      self.assertEqual(5, len(descriptor.get_options()))
      self.assertEqual(
          "test-connector", descriptor.get_options().get("connector")
      )
      self.assertEqual(
          "test-format", descriptor.get_options().get("key.format")
      )
      self.assertEqual(
          "true", descriptor.get_options().get("key.test-format.a")
      )
      self.assertEqual(
          "42", descriptor.get_options().get("key.test-format.b")
      )
      self.assertEqual(
          "C", descriptor.get_options().get("key.test-format.c")
      )
  
file_path: flink/flink-python/pyflink/table/tests/test_table_descriptor.py
imports: from pyflink.common.config_options import ConfigOptions
  from pyflink.table import DataTypes
  from pyflink.table.schema import Schema
  from pyflink.table.table_descriptor import TableDescriptor, FormatDescriptor
  from pyflink.testing.test_case_utils import PyFlinkStreamTableTestCase
label_desc: Use image node_id 6 for calling the TableDescriptorTest obj's underlying member method code with example usage: obj.test_format_with_format_descriptor() without return types