code: def anti_trim(col: Column) -> Column:
      """Remove whitespace from the boundaries of ``col`` using the regexp_replace function.
  
      :param col: Column on which to perform the regexp_replace.
      :type col: Column
      :return: A new Column with all whitespace removed from the boundaries.
      :rtype: Column
      """
      return F.regexp_replace(col, "\\b\\s+\\b", "")
  
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 3 for calling a global function with example usage: anti_trim(col) and returns: F