code: def test_to_configuration(self):
      expected_settings = (
          EnvironmentSettings.new_instance().in_batch_mode().build()
      )
      config = expected_settings.get_configuration()
  
      self.assertEqual(
          "BATCH", config.get_string("execution.runtime-mode", "stream")
      )
  
file_path: flink/flink-python/pyflink/table/tests/test_environment_settings.py
imports: from pyflink.java_gateway import get_gateway
  from pyflink.common import Configuration
  from pyflink.table import EnvironmentSettings
  from pyflink.testing.test_case_utils import PyFlinkTestCase
label_desc: Use image node_id 4 for calling the EnvironmentSettingsTests obj's underlying member method code with example usage: obj.test_to_configuration() without return types