code: def scenario(weight=1, delay=0.0, name=None):
      
      def _scenario(func, *args, **kw):
          _check_coroutine(func)
          if weight > 0:
              sname = name or func.__name__
              data = {'name': sname,
                      'weight': weight, 'delay': delay,
                      'func': func, 'args': args, 'kw': kw}
              _SCENARIO[sname] = data
  
          @functools.wraps(func)
          def __scenario(*args, **kw):
              return func(*args, **kw)
          return __scenario
  
      return _scenario
docs: Decorator to register a function as a Molotov test.
  
      Options:
  
      - **weight** used by Molotov when the scenarii are randomly picked.
        The functions with the highest values are more likely to be picked.
        Integer, defaults to 1. This value is ignored when the
        *scenario_picker* decorator is used.
      - **delay** once the scenario is done, the worker will sleep
        *delay* seconds. Float, defaults to 0.
        The general --delay argument you can pass to Molotov
        will be summed with this delay.
      - **name** name of the scenario. If not provided, will use the
        function __name___ attribute.
  
      The decorated function receives an :class:`aiohttp.ClientSession` instance.