def get_method(name):
<EOL>name = _format_name(name)<EOL>try:<EOL><INDENT>return METHODS[name]<EOL><DEDENT>except KeyError as exc:<EOL><INDENT>exc.args = ("<STR_LIT>".format(name),)<EOL>raise<EOL><DEDENT>
Return the PSD method registered with the given name.