code: def handle_cancellation(session: CommandSession):
      
  
      def control(value):
          if _is_cancellation(value) is True:
              session.finish(render_expression(
                  session.bot.config.SESSION_CANCEL_EXPRESSION))
          return value
  
      return control
docs: If the input is a string of cancellation word, finish the command session.