def reset_globals(version=None, loop=None):
    """ Reinitialize the global singletons with a given API version.

    :param version: 1 or 2. If `None`, pulled from the `useProtocolApiV2`
                    advanced setting.
    """
    global containers
    global instruments
    global labware
    global robot
    global reset
    global modules
    global hardware

    robot, reset, instruments, containers, labware, modules, hardware\
        = build_globals(version, loop)
def reset_globals ( version = None , loop = None ) : global containers global instruments global labware global robot global reset global modules global hardware robot , reset , instruments , containers , labware , modules , hardware = build_globals ( version , loop )
Reinitialize the global singletons with a given API version.

    :param version: 1 or 2. If `None`, pulled from the `useProtocolApiV2`
                    advanced setting.