def get_eg_uri_from_arg(srv, name):
    if srv and name:
        if name.startswith('/rest') and name in uri['enclosureGroups']:
            return name
        else:
            egs = srv.get_enclosure_groups()
            for eg in egs:
                if eg['name'] == name:
                    return eg['uri']
    return None
dataset/ETHPy150Open HewlettPackard/python-hpOneView/examples/scripts/define-profile-template.py/get_eg_uri_from_arg/swapped operands of `in`