code: def is_hsgp_term(term):
      """Determines if formulae term represents a HSGP term
  
      Bambi uses this function to detect HSGP terms and treat them in a different way.
      """
      if not is_single_component(term):
          return False
      component = term.components[0]
      if not is_call_component(component):
          return False
      if not is_stateful_transform(component):
          return False
      return isinstance(component.call.stateful_transform, HSGP)
  
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 12 for calling a global function with example usage: is_hsgp_term(term) and returns: isinstance, False, False, False