class_docstr: Layout of entire plot
class_docstr_tok: ["Layout","of","entire","plot"]
code: def check_layout(self):
      required = {"PANEL", "SCALE_X", "SCALE_Y"}
      common = self.layout.columns.intersection(list(required))
      if len(required) != len(common):
          raise PlotnineError(
              "Facet layout has bad format. It must contain "
              f"the columns '{required}'"
          )
  
file_path: plotnine/plotnine/facets/layout.py
imports: from __future__ import annotations
  import typing
  from contextlib import suppress
  import numpy
  from .._utils import match
  from ..exceptions import PlotnineError
  from ..iapi import labels_view, layout_details, pos_scales
label_desc: Use image node_id 8 for calling the Layout obj's underlying member method code with example usage: obj.check_layout() without return types