def is_shadowed(identifier, ip):
 return ((identifier in ip.user_ns) or (identifier in ip.user_global_ns) or (identifier in ip.ns_table['builtin']) or iskeyword(identifier))

def is_shadowed ( identifier , ip ) : return ( ( identifier in ip . user_ns ) or ( identifier in ip . user_global_ns ) or ( identifier in ip . ns_table [ 'builtin' ] ) or iskeyword ( identifier ) )
is the given identifier defined in one of the namespaces which shadow the alias and magic namespaces? note that an identifier is different than ifun .