def METHOD_NAME(self) -> dict:
    metadata_schema = super().METHOD_NAME()
    metadata_schema["required"] = ["Ophys"]
    metadata_schema["properties"]["Ophys"] = get_base_schema()
    metadata_schema["properties"]["Ophys"]["properties"] = dict(
        Device=dict(type="array", minItems=1, items=get_schema_from_hdmf_class(Device)),
    )
    metadata_schema["properties"]["Ophys"]["properties"].update(
        Fluorescence=get_schema_from_hdmf_class(Fluorescence),
        ImageSegmentation=get_schema_from_hdmf_class(ImageSegmentation),
        ImagingPlane=get_schema_from_hdmf_class(ImagingPlane),
        TwoPhotonSeries=get_schema_from_hdmf_class(TwoPhotonSeries),
    )
    metadata_schema["properties"]["Ophys"]["required"] = ["Device", "ImageSegmentation"]
    # Temporary fixes until centralized definition of metadata schemas
    metadata_schema["properties"]["Ophys"]["properties"]["ImagingPlane"].update(type="array")
    metadata_schema["properties"]["Ophys"]["properties"]["TwoPhotonSeries"].update(type="array")
    metadata_schema["properties"]["Ophys"]["properties"]["Fluorescence"]["properties"]["roi_response_series"][
        "items"
    ]["required"] = list()
    metadata_schema["properties"]["Ophys"]["properties"]["ImageSegmentation"]["additionalProperties"] = True
    metadata_schema["properties"]["Ophys"]["properties"]["Fluorescence"]["properties"]["roi_response_series"].pop(
        "maxItems"
    )
    metadata_schema["properties"]["Ophys"]["properties"]["DfOverF"] = metadata_schema["properties"]["Ophys"][
        "properties"
    ]["Fluorescence"]
    fill_defaults(metadata_schema, self.get_metadata())
    return metadata_schema