code: def test_mode_selection(self):
      builder = EnvironmentSettings.new_instance()
  
      # test the default behaviour to make sure it is consistent with the python doc
      environment_settings = builder.build()
      self.assertTrue(environment_settings.is_streaming_mode())
  
      # test in_streaming_mode
      environment_settings = builder.in_streaming_mode().build()
      self.assertTrue(environment_settings.is_streaming_mode())
  
      environment_settings = EnvironmentSettings.in_streaming_mode()
      self.assertTrue(environment_settings.is_streaming_mode())
  
      # test in_batch_mode
      environment_settings = builder.in_batch_mode().build()
      self.assertFalse(environment_settings.is_streaming_mode())
  
      environment_settings = EnvironmentSettings.in_batch_mode()
      self.assertFalse(environment_settings.is_streaming_mode())
  
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 1 for calling the EnvironmentSettingsTests obj's underlying member method code with example usage: obj.test_mode_selection() without return types