code: def formula_has_intercept(formula: str) -> bool:
      """Determines if a model formula results in a model with intercept."""
      description = fm.model_description(formula)
      return any(
          isinstance(term, fm.terms.Intercept)
          for term in description.terms
      )
  
file_path: bambi/bambi/formula.py
imports: import warnings
  from typing import Sequence
  import formulae
label_desc: Use image node_id 1 for calling a global function with example usage: formula_has_intercept(formula) and returns: any