code: def parse_vars(
      model: Model, vars: Union[ModelVariable, Sequence[ModelVariable]]
  ) -> List[Variable]:
      if isinstance(vars, (list, tuple)):
          vars_seq = vars
      else:
          vars_seq = (vars,)
      return [
          model[var] if isinstance(var, str) else var
          for var in vars_seq
      ]
  
imports: from typing import List, Sequence, Union
  from pytensor import Variable
  from pytensor.graph import ancestors
  from pymc import Model
  from pymc.model.fgraph import ModelObservedRV, ModelVar, fgraph_from_model, model_from_fgraph
label_desc: Use image node_id 2 for calling a global function with example usage: parse_vars(model, vars) and returns: unknown