def set_creo_version(client, version):
    """Set the version of Creo you are running.

    This function only needs to be called once per creoson session.
    This function must be called if you are doing certain functions
    in Creo 7 due to deprecated config options.

    Needed for functions:
        familytable_replace
        file_assemble
        file_regenerate
        feature_delete
        feature_resume
        feature_suppress

    Args:
        client (obj):
            creopyson Client.
        version (int):
            Creo version.

    Returns:
        None.

    """
    data = {"version": int(version)}
    return client._creoson_post("creo", "set_creo_version", data)