code: def is_local_deployment(j_configuration):
      jvm = get_gateway().jvm
      JDeploymentOptions = (
          jvm.org.apache.flink.configuration.DeploymentOptions
      )
      return j_configuration.containsKey(
          JDeploymentOptions.TARGET.key()
      ) and j_configuration.getString(
          JDeploymentOptions.TARGET.key(), None
      ) in (
          "local",
          "minicluster",
      )
  
file_path: flink/flink-python/pyflink/util/java_utils.py
imports: from datetime import timedelta
  from py4j.java_gateway import JavaClass, get_java_class, JavaObject
  from py4j.protocol import Py4JJavaError
  from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 10 for calling a global function with example usage: is_local_deployment(j_configuration) and returns: unknown