def METHOD_NAME(version):
    """
    Sets the version to be used for compiling using the useVersion function
    Parameters
    ----------
    version: string
        The version requested
    """
    # Set version
    if version:
        from psychopy import useVersion
        useVersion(version)
    # import logging here not at top of script (or useVersion fails)
    global logging
    from psychopy import logging
    if __name__ != '__main__' and version not in [None, 'None', 'none', '']:
        version = None
        msg = "You cannot set version by calling compileScript() manually. Setting 'version' to None."
        logging.warning(msg)
    return version