class_docstr: Abstract class for Flavor Backend.
  This class defines the API interface for local model deployment of MLflow model flavors.
docstr: Serve the specified MLflow model locally.
  
  :param model_uri: URI pointing to the MLflow model to be used for scoring.
  :param port: Port to use for the model deployment.
  :param host: Host to use for the model deployment. Defaults to ``localhost``.
  :param timeout: Timeout in seconds to serve a request. Defaults to 60.
  :param enable_mlserver: Whether to use MLServer or the local scoring server.
  :param synchronous: If True, wait until server process exit and return 0, if process exit
                      with non-zero return code, raise exception.
                      If False, return the server process `Popen` instance immediately.
  :param stdout: Redirect server stdout
  :param stderr: Redirect server stderr
docstr_tok: ["Serve","the","specified","MLflow","model","locally",".",":","param","model_uri",":","URI","pointing","to","the","MLflow","model","to","be","used","for","scoring",".",":","param","port",":","Port","to","use","for","the","model","deployment",".",":","param","host",":","Host","to","use","for","the","model","deployment",".","Defaults","to","``","localhost","``",".",":","param","timeout",":","Timeout","in","seconds","to","serve","a","request",".","Defaults","to","60.",":","param","enable_mlserver",":","Whether","to","use","MLServer","or","the","local","scoring","server",".",":","param","synchronous",":","If","True",",","wait","until","server","process","exit","and","return","0",",","if","process","exit","with","non-zero","return","code",",","raise","exception",".","If","False",",","return","the","server","process","`","Popen","`","instance","immediately",".",":","param","stdout",":","Redirect","server","stdout",":","param","stderr",":","Redirect","server","stderr"]
code: def serve(
      self,
      model_uri,
      port,
      host,
      timeout,
      enable_mlserver,
      synchronous=True,
      stdout=None,
      stderr=None,
  ):
      """
      Serve the specified MLflow model locally.
  
      :param model_uri: URI pointing to the MLflow model to be used for scoring.
      :param port: Port to use for the model deployment.
      :param host: Host to use for the model deployment. Defaults to ``localhost``.
      :param timeout: Timeout in seconds to serve a request. Defaults to 60.
      :param enable_mlserver: Whether to use MLServer or the local scoring server.
      :param synchronous: If True, wait until server process exit and return 0, if process exit
                          with non-zero return code, raise exception.
                          If False, return the server process `Popen` instance immediately.
      :param stdout: Redirect server stdout
      :param stderr: Redirect server stderr
      """
      pass
  
file_path: mlflow/mlflow/models/flavor_backend.py
imports: from abc import ABCMeta, abstractmethod
  from mlflow.utils.annotations import developer_stable
label_desc: Use image node_id 3 for calling the FlavorBackend obj's underlying member method code with example usage: obj.serve(model_uri, port, host, timeout, enable_mlserver, synchronous, stdout, stderr) without return types