docs: def bind_blueprint(pale_api_module, flask_blueprint):
      """Binds an implemented pale API module to a Flask Blueprint."""
  
      if not isinstance(flask_blueprint, Blueprint):
          raise TypeError(("pale.flask_adapter.bind_blueprint expected the "
                           "passed in flask_blueprint to be an instance of "
                           "Blueprint, but it was an instance of %s instead.")
                          % (type(flask_blueprint),))
  
      if not pale.is_pale_module(pale_api_module):
          raise TypeError(("pale.flask_adapter.bind_blueprint expected the "
                           "passed in pale_api_module to be a module, and to "
                           "have a _module_type defined to equal "
                           "pale.ImplementationModule, but it was an instance of "
                           "%s instead.")
                          % (type(pale_api_module),))
  
      endpoints = pale.extract_endpoints(pale_api_module)
  
      for endpoint in endpoints:
          endpoint._set_response_class(RESPONSE_CLASS)
          method = [endpoint._http_method]
          name = endpoint._route_name
          handler = endpoint._execute
  
          flask_blueprint.add_url_rule(
                  endpoint._uri,
                  name,
                  view_func=ContextualizedHandler(handler),
                  methods=method)