code: def __init__(
      self,
      facets: StructExpression,
      nrow: int = None,
      ncol: int = None,
      scales: str = "fixed",
  ):
      if nrow is not None and ncol is not None:
          raise ValueError(
              "Both `nrow` and `ncol` were specified. "
              "Please specify only one of these values."
          )
      if scales not in self._scale_mappings:
          raise ValueError(
              f"An unsupported value ({scales}) was provided for `scales`. "
              f"Supported values are: {[k for k in self._scale_mappings.keys()]}."
          )
      self.nrow = nrow
      self.ncol = ncol
      self.facets = facets
      self.scales = 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 1 to create a new FacetWrap object from inherited base classes: Faceter with example: obj = FacetWrap(facets, nrow, ncol, scales)