code: def is_timestamp_ntz_preferred() -> bool:
      """
      Return a bool if TimestampNTZType is preferred according to the SQL configuration set.
      """
      if is_remote():
          from pyspark.sql.connect.session import (
              SparkSession as ConnectSparkSession,
          )
  
          session = ConnectSparkSession.getActiveSession()
          if session is None:
              return False
          else:
              return (
                  session.conf.get("spark.sql.timestampType", None)
                  == "TIMESTAMP_NTZ"
              )
      else:
          jvm = SparkContext._jvm
          return (
              jvm is not None
              and jvm.PythonSQLUtils.isTimestampNTZPreferred()
          )
  
imports: import inspect
  import functools
  import os
  from typing import Any, Callable, Optional, Sequence, TYPE_CHECKING, cast, TypeVar, Union, Type
  from py4j.java_collections import JavaArray
  from py4j.java_gateway import JavaClass, JavaGateway, JavaObject
  from pyspark import SparkContext
  from pyspark.errors import AnalysisException, ParseException, IllegalArgumentException, StreamingQueryException, QueryExecutionException, PythonException, UnknownException, SparkUpgradeException, PySparkNotImplementedError, PySparkRuntimeError
  from pyspark.errors.exceptions.captured import CapturedException
  from pyspark.find_spark_home import _find_spark_home
label_desc: Use image node_id 4 for calling a global function with example usage: is_timestamp_ntz_preferred() and returns: unknown, False, unknown