code: def _y(y, df, ordinal_threshold=6, **kwargs):
      return alt.Y(
          field=y,
          type=infer_vegalite_type(
              df[y], ordinal_threshold=ordinal_threshold
          ),
          **kwargs,
      )
  
imports: import numpy
  import pandas
  import altair
  from ._utils import infer_vegalite_type, unpivot_frame, warn_if_keywords_unused, validate_aggregation
  from ._pandas_internals import PandasObject, register_dataframe_accessor, register_series_accessor
label_desc: Use image node_id 2 for calling a global function with example usage: _y(y, df, ordinal_threshold) and returns: alt