def _token_callable(token, local_dict, global_dict, nextToken=None):
 func = local_dict.get(token[1])
 if (not func):
  func = global_dict.get(token[1])
 return (callable(func) and (not isinstance(func, sympy.Symbol)))

def _token_callable ( token , local_dict , global_dict , nextToken = None ) : func = local_dict . get ( token [ 1 ] ) if ( not func ) : func = global_dict . get ( token [ 1 ] ) return ( callable ( func ) and ( not isinstance ( func , sympy . Symbol ) ) )
predicate for whether a token name represents a callable function .