def METHOD_NAME(jvm_props: Dict[str, str] = None):
    jvm.preload_jvm_dll()
    import jpy
    """ This function uses the default DH property file to embed the Deephaven server and starts a Deephaven Python
    Script session. """
    if not jpy.has_jvm():
        # we will try to initialize the jvm
        propfile = os.environ.get('DEEPHAVEN_PROPFILE', 'dh-defaults.prop')
        jvm_properties = {
            'PyObject.cleanup_on_thread': 'false',
            'java.awt.headless': 'true',
            'MetricsManager.enabled': 'true',
            'Configuration.rootFile': propfile,
            'deephaven.dataDir': '/data',
            'deephaven.cacheDir': '/cache',
            'Calendar.default': 'USNYSE',
            'Calendar.importPath': '/test_calendar_imports.txt',
        }
        if jvm_props:
            jvm_properties.update(jvm_props)
        jvm_options = {
            # Allow access to java.nio.Buffer fields
            '--add-opens=java.base/java.nio=ALL-UNNAMED',
            # Allow our hotspot-impl project to access internals
            '--add-exports=java.management/sun.management=ALL-UNNAMED',
            # Allow our clock-impl project to access internals
            '--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED',
        }
        jvm_classpath = os.environ.get('DEEPHAVEN_CLASSPATH', '')
        # Intentionally small by default - callers should set as appropriate
        jvm_maxmem = os.environ.get('DEEPHAVEN_MAXMEM', '256m')
        # Start up the JVM
        jpy.VerboseExceptions.enabled = True
        jvm.init_jvm(
            jvm_maxmem=jvm_maxmem,
            jvm_classpath=_expand_wildcards_in_list(jvm_classpath.split(os.path.pathsep)),
            jvm_properties=jvm_properties,
            jvm_options=jvm_options
        )
        # Set up a Deephaven Python session
        py_scope_jpy = jpy.get_type("io.deephaven.engine.util.PythonScopeJpyImpl").ofMainGlobals()
        global py_dh_session
        _JPeriodicUpdateGraph = jpy.get_type("io.deephaven.engine.updategraph.impl.PeriodicUpdateGraph")
        _j_test_update_graph = _JPeriodicUpdateGraph.newBuilder(_JPeriodicUpdateGraph.DEFAULT_UPDATE_GRAPH_NAME).existingOrBuild()
        _JPythonScriptSession = jpy.get_type("io.deephaven.integrations.python.PythonDeephavenSession")
        py_dh_session = _JPythonScriptSession(_j_test_update_graph, py_scope_jpy)