code: def plot_lines(
      data_series,
      xlabel,
      ylabel,
      legend_loc=None,
      line_kwargs=None,
      title=None,
  ):
      import matplotlib.pyplot as plt
  
      fig, ax = plt.subplots()
  
      if line_kwargs is None:
          line_kwargs = {}
  
      for label, data_x, data_y in data_series:
          ax.plot(data_x, data_y, label=label, **line_kwargs)
  
      if legend_loc:
          ax.legend(loc=legend_loc)
  
      ax.set(xlabel=xlabel, ylabel=ylabel, title=title)
  
      return fig, ax
  
imports: import datetime
  import decimal
  import json
  import logging
  import os
  from copy import deepcopy
  from typing import Any, Dict, List, Optional, Union
  import numpy
  import pandas
  from mlflow.exceptions import INVALID_PARAMETER_VALUE, MlflowException
  from mlflow.models import Model
  from mlflow.store.artifact.utils.models import get_model_name_and_version
  from mlflow.types import DataType, ParamSchema, ParamSpec, Schema, TensorSpec
  from mlflow.types.schema import Array, Object, Property
  from mlflow.types.utils import TensorsNotSupportedException, _infer_param_schema, clean_tensor_type
  from mlflow.utils.annotations import experimental
  from mlflow.utils.proto_json_utils import NumpyEncoder, dataframe_from_parsed_json, parse_tf_serving_input
  from mlflow.utils.uri import get_databricks_profile_uri_from_artifact_uri
label_desc: Use image node_id 8 for calling a global function with example usage: plot_lines(data_series, xlabel, ylabel, legend_loc, line_kwargs, title) and returns: fig,  ax