def METHOD_NAME(case1_suffix, case1_count):
    database = Database(Spec(datetime.now(), list()))
    bold_file_path = "bold.nii.gz"
    vars = ["magnitude1", "magnitude2", "phasediff"]
    files = []
    for i in case1_suffix:
        if i in vars:
            files.append(
                File(
                    path=i + ".nii.gz",
                    datatype="fmap",
                    suffix=i,
                    extension=".nii.gz",
                    tags=dict(sub="01"),
                    # metadata=dict(echo_time_1=4.63),
                )
            )
    files.append(
        File(
            path=bold_file_path,
            datatype="func",
            suffix="bold",
            extension=".nii.gz",
            tags=dict(sub="01"),
        )
    )
    if len(files) < 3:
        files.clear()
    for file in files:
        database.put(file)
    fieldmaps = collect_fieldmaps(database, bold_file_path)
    assert len(fieldmaps) == case1_count