def METHOD_NAME(self, batch, request):
    # reset ROIs to request
    for array_key, spec in request.array_specs.items():
        batch.arrays[array_key].spec.roi = spec.roi
        if self.extra_data is not None:
            batch.arrays[array_key].attrs[
                "specified_location_extra_data"
            ] = self.extra_data[self.loc_i]
    for graph_key, spec in request.graph_specs.items():
        batch.points[graph_key].spec.roi = spec.roi
    # change shift point locations to lie within roi
    for graph_key in request.graph_specs.keys():
        batch.points[graph_key].shift(-self.specified_shift)