def mock_get_pack_version(pack):
    """
    Mock get_pack_version function which return mocked pack version
    """
    version = None

    if pack in DOWNLOADED_OR_INSTALLED_PACK_METAdATA:
        metadata = DOWNLOADED_OR_INSTALLED_PACK_METAdATA[pack]
        version = metadata.get("version", None)

    return version

    Mock get_pack_version function which return mocked pack version
    
contrib/packs/tests/test_get_pack_dependencies.py