def _servicegroup_get(sg_name, **connection_args):
    nitro = _connect(**connection_args)
    if nitro is None:
        return None
    sg = NSServiceGroup()
    sg.set_servicegroupname(sg_name)
    try:
        sg = NSServiceGroup.get(nitro, sg)
    except NSNitroError as error:
        log.debug('netscaler module error - NSServiceGroup.get() failed: {0}'.format(error))
        sg = None
    _disconnect(nitro)
    return sg
generate a warning for this test session.
dataset/ETHPy150Open saltstack/salt/salt/modules/netscaler.py/_servicegroup_get--crossover with--dataset/ETHPy150Open pytest-dev/pytest/_pytest/config.py/Config.warn