def get_sht_from_arg(srv, name):    
    if srv and name:
        if name.startswith('/rest') and name in uri['server-hardware-types']:
            return name
        else:
            shts = srv.get_server_hardware_types()
            for sht in shts:
                if sht['name'] == name:
                    return sht
    return None
dataset/ETHPy150Open HewlettPackard/python-hpOneView/examples/scripts/define-profile-template.py/get_sht_from_arg/swapped operands of `in`