code: def convert_model(estimator, language: str = "python") -> str:
      """
      This function transpiles trained machine learning models into native
      inference script in different programming languages (Python, C, Java,
      Go, JavaScript, Visual Basic, C#, PowerShell, R, PHP, Dart, Haskell,
      Ruby, F#). This functionality is very useful if you want to deploy models
      into environments where you can't install your normal Python stack to
      support model inference.
  
  
      Example
      -------
      >>> from pycaret.datasets import get_data
      >>> boston = get_data('boston')
      >>> from pycaret.regression import *
      >>> exp_name = setup(data = boston,  target = 'medv')
      >>> lr = create_model('lr')
      >>> lr_java = convert_model(lr, 'java')
  
  
      estimator: scikit-learn compatible object
          Trained model object
  
  
      language: str, default = 'python'
          Language in which inference script to be generated. Following
          options are available:
  
          * 'python'
          * 'java'
          * 'javascript'
          * 'c'
          * 'c#'
          * 'f#'
          * 'go'
          * 'haskell'
          * 'php'
          * 'powershell'
          * 'r'
          * 'ruby'
          * 'vb'
          * 'dart'
  
  
      Returns:
          str
  
      """
      return _CURRENT_EXPERIMENT.convert_model(estimator, language)
  
imports: import logging
  import os
  from typing import Any, BinaryIO, Callable, Dict, List, Optional, Union
  import pandas
  from joblib.memory import Memory
  from pycaret.internal.parallel.parallel_backend import ParallelBackend
  from pycaret.loggers.base_logger import BaseLogger
  from pycaret.regression.oop import RegressionExperiment
  from pycaret.utils.constants import DATAFRAME_LIKE, SEQUENCE_LIKE, TARGET_LIKE
  from pycaret.utils.generic import check_if_global_is_not_none
label_desc: Use image node_id 32 for calling a global function with example usage: convert_model(estimator, language) and returns: _CURRENT_EXPERIMENT