code: def create_and_configure_wrapper(context_or_world):
      
      # Create default driver wrapper
      context_or_world.driver_wrapper = DriverWrappersPool.get_default_wrapper()
      context_or_world.utils = context_or_world.driver_wrapper.utils
  
      # Get behave userdata properties to override config properties
      try:
          behave_properties = context_or_world.config.userdata
      except AttributeError:
          behave_properties = None
  
      # Configure wrapper
      context_or_world.driver_wrapper.configure(context_or_world.config_files, behave_properties=behave_properties)
  
      # Copy config object
      context_or_world.toolium_config = context_or_world.driver_wrapper.config
  
      # Configure logger
      context_or_world.logger = logging.getLogger(__name__)
docs: Create and configure driver wrapper in behave or lettuce tests
  
      :param context_or_world: behave context or lettuce world