def getAttribute(self, attribute):
if type(attribute) in (list, tuple):<EOL><INDENT>if len(attribute) != <NUM_LIT:2>:<EOL><INDENT>raise LookupError('<STR_LIT>')<EOL><DEDENT>ns_dict = self.attributes.get(attribute[<NUM_LIT:0>])<EOL>if ns_dict is None:<EOL><INDENT>return None<EOL><DEDENT>return ns_dict.get(attribute[<NUM_LIT:1>])<EOL><DEDENT>return self.attributes.get(attribute)<EOL>
return requested attribute value or None