code: def date_format(timestamp, format) -> Expression:
      """
      Formats a timestamp as a string using a specified format.
      The format must be compatible with MySQL's date formatting syntax as used by the
      date_parse function.
  
      For example `date_format(col("time"), "%Y, %d %M")` results in strings formatted as
      "2017, 05 May".
  
      :param timestamp: The timestamp to format as string.
      :param format: The format of the string.
      :return: The formatted timestamp as string.
      """
      return _binary_op("dateFormat", timestamp, format)
  
imports: from typing import Union
  from pyflink import add_version_doc
  from pyflink.java_gateway import get_gateway
  from pyflink.table.expression import Expression, _get_java_expression, TimePointUnit, JsonOnNull
  from pyflink.table.types import _to_java_data_type, DataType
  from pyflink.table.udf import UserDefinedFunctionWrapper
  from pyflink.util.java_utils import to_jarray, load_java_class
label_desc: Use image node_id 25 for calling a global function with example usage: date_format(timestamp, format) and returns: _binary_op