def METHOD_NAME(test_class_instance, **kwargs):
    self.live_test = not isinstance(test_class_instance, ReplayableTest)
    self.test_class_instance = test_class_instance
    if self.live_test or test_class_instance.in_recording:
        resource_name = self.random_name
        if not self.live_test and isinstance(self, RecordingProcessor):
            test_class_instance.recording_processors.append(self)
    else:
        resource_name = self.moniker
    with self.override_disable_recording():
        parameter_update = self.create_resource(
            resource_name,
            **kwargs
        )
    if parameter_update:
        kwargs.update(parameter_update)
    trim_kwargs_from_test_function(fn, kwargs)
    try:
        fn(test_class_instance, **kwargs)
    finally:
        # Russian Doll - the last declared resource to be deleted first.
        self.remove_resource_with_record_override(resource_name, **kwargs)