async def METHOD_NAME(
    upload_file: Callable[[ByteSize, str], Awaitable[tuple[Path, SimcoreS3FileID]]],
    client: TestClient,
    user_id: UserID,
    project_id: ProjectID,
    location_id: int,
    file_size: ByteSize,
    faker: Faker,
):
    assert client.app
    NUM_FILES = 3
    for n in range(NUM_FILES):
        file, file_id = await upload_file(file_size, faker.file_name())
        url = (
            client.app.router["get_files_metadata_dataset"]
            .url_for(location_id=f"{location_id}", dataset_id=f"{project_id}")
            .with_query(user_id=user_id)
        )
        response = await client.get(f"{url}")
        data, error = await assert_status(response, web.HTTPOk)
        assert data
        assert not error
        list_fmds = parse_obj_as(list[FileMetaDataGet], data)
        assert len(list_fmds) == (n + 1)
        fmd = list_fmds[n]
        assert fmd.file_name == file.name
        assert fmd.file_id == file_id
        assert fmd.file_uuid == file_id
        assert fmd.file_size == file.stat().st_size