def assert_submodules_are_checked_out():
    """
    Function which verifies that user has ran "git submodule update --init --recursive" in the
    root of the directory and that the "st2tests/st2tests/fixtures/packs/test" git repo submodule
    used by the tests is checked out.
    """
    # late import to prevent circular import
    from st2tests.fixtures.packs.test_content_version_fixture.fixture import PACK_PATH

    pack_path = os.path.abspath(PACK_PATH)
    submodule_git_dir_or_file_path = os.path.join(pack_path, ".git")

    # NOTE: In newer versions of git, that .git is a file and not a directory
    if not os.path.exists(submodule_git_dir_or_file_path):
        raise ValueError(GIT_SUBMODULES_NOT_CHECKED_OUT_ERROR % (pack_path))

    return True

    Function which verifies that user has ran "git submodule update --init --recursive" in the
    root of the directory and that the "st2tests/st2tests/fixtures/packs/test" git repo submodule
    used by the tests is checked out.
    
st2tests/st2tests/fixturesloader.py