def get_remote(self, node, method):
        method = method or "ssh"
        key = (node.name, method)
        remote = self.remotes.get(key)
        if not remote:
            parts = method.split(":", 1)
            if len(parts) == 2:
                method, args = parts
                args = [args]
            else:
                args = []
            try:
                control_class = METHODS[method]
            except __HOLE__:
                raise errors.RemoteError(
                    "unknown remote control method %r" % method)

            remote = control_class(node, *args)
            self.remotes[key] = remote

        return remote
dataset/ETHPy150Open ohmu/poni/poni/rcontrol_all.py/RemoteManager.get_remote