def mock_get_pack_metadata(pack_dir):
    """
    Mock get_pack_version function which return mocked pack version
    """
    metadata = {}

    if pack_dir in PACK_METADATA:
        metadata = PACK_METADATA[pack_dir]
    return metadata

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