

def get_controller(equipment, accessmethod, logfile=None):
    'Return controller instance that is based on the equipment role.'
    path = _CONTROLLERMAP[accessmethod]
    constructor = module.get_object(path)
    return equipment(equipment, logfile)

dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/controller.py get_controller/VarMisuse@35/64 `constructor`->`equipment`