code: def is_single_component(term) -> bool:
      """Determines if formulae term contains a single component"""
      return hasattr(term, "components") and len(term.components) == 1
  
file_path: bambi/bambi/utils.py
imports: from typing import Sequence
  import ast
  import textwrap
  import formulae
  import numpy
  from bambi.transformations import HSGP
label_desc: Use image node_id 9 for calling a global function with example usage: is_single_component(term) and returns: unknown