code: def test(ctx, explainer_filepath, port):
      if (
          str(explainer_filepath).endswith(".joblib")
          or str(explainer_filepath).endswith(".pkl")
          or str(explainer_filepath).endswith(".pickle")
          or str(explainer_filepath).endswith(".dill")
      ):
          launch_dashboard_from_pkl(
              explainer_filepath,
              no_browser=True,
              port=port,
              no_dashboard=True,
          )
          return
  
      elif str(explainer_filepath).endswith(".yaml"):
          launch_dashboard_from_yaml(
              explainer_filepath,
              no_browser=True,
              port=port,
              no_dashboard=True,
          )
          return
      else:
          raise ValueError(
              "Please pass a proper argument "
              "(i.e. .joblib, .pkl, .dill or .yaml)!"
          )
  
imports: import os
  import webbrowser
  from pathlib import Path
  from importlib import import_module
  from copy import deepcopy
  import pickle
  import oyaml
  import pandas
  import joblib
  import click
  import waitress
  from explainerdashboard import *
  from explainerdashboard.explainers import BaseExplainer
  from explainerdashboard.dashboards import ExplainerDashboard
label_desc: Use image node_id 10 for calling a global function with example usage: test(ctx, explainer_filepath, port) without return types