code: def transform(field_name: str, transform: Transform) -> Field:
      """Create a ``DataSpec`` dict that applies an arbitrary client-side
      ``Transform`` to a ``ColumnDataSource`` column.
  
      Args:
          field_name (str) : A field name to configure ``DataSpec`` with
  
          transform (Transform) : A transforms to apply to that field
  
      Returns:
          Field
  
      """
      return Field(field_name, transform)
  
file_path: bokeh/src/bokeh/transform.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING, Sequence, Union
  from .core.property.vectorization import Expr, Field
  from .models.expressions import CumSum, Stack
  from .models.mappers import CategoricalColorMapper, CategoricalMarkerMapper, CategoricalPatternMapper, EqHistColorMapper, LinearColorMapper, LogColorMapper
  from .models.transforms import Dodge, Jitter
label_desc: Use image node_id 11 for calling a global function with example usage: transform(field_name, transform) and returns: Field