code: def multi_equals(value: Any) -> udf:  # noqa: ANN401
      """Create a user-defined function that checks if all the given columns have the designated value.
  
      :param value: The designated value.
      :type value: Any
      :return: A user-defined function of type BooleanType().
      :rtype: UserDifinedFunction
      """
  
      def temp_udf(*cols) -> bool:  # noqa: ANN002
          return all(map(lambda col: col == value, cols))  # noqa: C417
  
      return F.udf(temp_udf, BooleanType())
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import re
  import uuid
  from typing import Any
  import pyspark.sql.functions
  from pyspark.sql.types import ArrayType, BooleanType, StringType
label_desc: Use image node_id 7 for calling a global function with example usage: multi_equals(value) and returns: F, all