code: def get_method(name):
      
      # find method
      name = _format_name(name)
      try:
          return METHODS[name]
      except KeyError as exc:
          exc.args = ("no PSD method registered with name {0!r}".format(name),)
          raise
docs: Return the PSD method registered with the given name.