def get_controller(equipment, logfile=None):
    try:
        del os.environ["TERM"]
    except __HOLE__:
        pass
    ssh = sshlib.get_ssh(equipment["hostname"], equipment["user"],
            equipment["password"], prompt=equipment["prompt"],
            logfile=logfile)
    ctor = ShellController(ssh)
    ctor.host = equipment["hostname"]
    ctor.user = equipment["user"]
    ctor.password = equipment["password"]
    return ctor
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/ssh_controller.py/get_controller