code: def facet_wrap(
      facets: StructExpression,
      *,
      nrow: int = None,
      ncol: int = None,
      scales: str = "fixed",
  ) -> "FacetWrap":
      """Introduce a one dimensional faceting on specified fields.
  
      Parameters
      ----------
      facets: :class:`hail.expr.StructExpression` created by `hl.ggplot.vars` function.
          The fields to facet on.
      nrow: :class:`int`
          The number of rows into which the facets will be spread. Will be ignored if `ncol` is set.
      ncol: :class:`int`
          The number of columns into which the facets will be spread.
      scales: :class:`str`
          Whether the scales are the same across facets. For more information and a list of supported options, see `the ggplot documentation <https://ggplot2-book.org/facet.html#controlling-scales>`__.
  
      Returns
      -------
      :class:`FigureAttribute`
          The faceter.
  
      """
      return FacetWrap(facets, nrow, ncol, scales)
  
file_path: hail/hail/python/hail/ggplot/facets.py
imports: import abc
  import math
  from typing import Dict, Tuple
  from .geoms import FigureAttribute
  from .utils import n_partitions
  import hail
  from hail import Expression, StructExpression
label_desc: Use image node_id 2 for calling a global function with example usage: facet_wrap(facets) and returns: FacetWrap