code: def check_ordinal_formula(formula: Formula) -> Formula:
      """Check if a supplied formula can be used with an ordinal model.
  
      Ordinal models have the following constrains (for the moment):
      * A single formula must be passed. This is because Bambi does not support modeling the
      thresholds as a function of predictors.
      * The intercept is omitted. This is to avoid non-identifiability issues between the intercept
      and the thresholds.
      """
      if len(formula.additionals) > 0:
          raise ValueError(
              "Ordinal families don't accept multiple formulas"
          )
      if formula_has_intercept(formula.main):
          warnings.warn("The intercept is omitted in ordinal families")
      return formula
  
file_path: bambi/bambi/formula.py
imports: import warnings
  from typing import Sequence
  import formulae
label_desc: Use image node_id 2 for calling a global function with example usage: check_ordinal_formula(formula) and returns: formula