code: def _symbol_of(arg):
      if isinstance(arg, Declaration):
          arg = arg.variable.symbol
      elif isinstance(arg, Variable):
          arg = arg.symbol
      return arg
  
file_path: sympy/sympy/codegen/algorithms.py
imports: from sympy.core.containers import Tuple
  from sympy.core.numbers import oo
  from sympy.core.relational import Gt, Lt
  from sympy.core.symbol import Dummy, Symbol
  from sympy.functions.elementary.complexes import Abs
  from sympy.functions.elementary.miscellaneous import Min, Max
  from sympy.logic.boolalg import And
  from sympy.codegen.ast import Assignment, AddAugmentedAssignment, break_, CodeBlock, Declaration, FunctionDefinition, Print, Return, Scope, While, Variable, Pointer, real
  from sympy.codegen.cfunctions import isnan
label_desc: Use image node_id 2 for calling a global function with example usage: _symbol_of(arg) and returns: arg