code: def get_aliased_name(term):
      """Get the aliased name of a model term
  
      Model terms have a name and, optionally, an alias. The alias is used as the "name" if it's
      available. This is a helper that returns the right "name".
  
      Parameters
      ----------
      term : BaseTerm
          The term
  
      Returns
      -------
      str
          The aliased name
      """
      if term.alias:
          return term.alias
      return term.name
  
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 8 for calling a global function with example usage: get_aliased_name(term) and returns: term, term