code: def patch_context(self, context):
          
          context.__class__ = PatchedContext
          # Simply setting __class__ directly doesn't work
          # because behave.runner.Context.__setattr__ is implemented wrongly.
          object.__setattr__(context, '__class__', PatchedContext)
docs: Patches the context to add utility functions
  
          Sets up the base_url, and the get_url() utility function.