def Ref(stack, fn_name, args):
 if (args in stack):
  RefClass = hot_funcs.GetResource
 else:
  RefClass = ParamRef
 return RefClass(stack, fn_name, args)

def Ref ( stack , fn_name , args ) : if ( args in stack ) : RefClass = hot_funcs . GetResource else : RefClass = ParamRef return RefClass ( stack , fn_name , args )
a function for resolving parameters or resource references .