code: def execute_after_scenario_steps(self, context):
          
          if not self.feature_error and not self.scenario_error:
              self.__execute_steps_by_action(context, ACTIONS_AFTER_SCENARIO)
  
          # Behave dynamic environment: Fail all steps if dyn_env has got any error and reset it
          if self.reset_error_status():
              context.scenario.reset()
              context.dyn_env.fail_first_step_precondition_exception(context.scenario)
docs: actions after each scenario
          :param context: It’s a clever place where you and behave can store information to share around, automatically managed by behave.