docs: def monkey_patch_override_instance_method(instance):
      """
      Override an instance method with a new version of the same name. The
      original method implementation is made available within the override method
      as `_original_<METHOD_NAME>`.
      """
      def perform_override(override_fn):
          fn_name = override_fn.__name__
          original_fn_name = '_original_' + fn_name
          # Override instance method, if it hasn't already been done
          if not hasattr(instance, original_fn_name):
              original_fn = getattr(instance, fn_name)
              setattr(instance, original_fn_name, original_fn)
              bound_override_fn = override_fn.__get__(instance)
              setattr(instance, fn_name, bound_override_fn)
      return perform_override