code: def ewm(col: Column, alpha: float, ignore_na: bool) -> Column:
      if is_remote():
          from pyspark.sql.connect.functions.builtin import (
              _invoke_function_over_columns,
              lit,
          )
  
          return _invoke_function_over_columns(  # type: ignore[return-value]
              "ewm",
              col,  # type: ignore[arg-type]
              lit(alpha),
              lit(ignore_na),
          )
  
      else:
          sc = SparkContext._active_spark_context
          return Column(
              sc._jvm.PythonSQLUtils.ewm(col._jc, alpha, ignore_na)
          )
  
file_path: spark/python/pyspark/pandas/spark/functions.py
imports: from pyspark import SparkContext
  from pyspark.sql.column import Column
  from pyspark.sql.utils import is_remote
label_desc: Use image node_id 8 for calling a global function with example usage: ewm(col, alpha, ignore_na) and returns: _invoke_function_over_columns, Column