def METHOD_NAME(self, inputs):
    # Inputs
    self.input_ids = [id(item) for item in inputs]
    if self.idx != 0:
        inputs = inputs[:]
        inputs[0], inputs[self.idx] = inputs[self.idx], inputs[0]
    self.after_ids = [id(item) for item in inputs]
    self.input_shapes = get_shape(inputs)
    # Resize
    if self.force_resize:
        inputs = self.spatial_resize(inputs)
        self.resized_shapes = get_shape(inputs)
    # Outputs
    output = self.op(inputs)
    self.output_shapes = get_shape(output)
    return output