class_docstr: Interface defining Metrics' API.
docstr: Basic plotting functionality for Metric class.
  The user provides a plot_func (Callable) that contains the actual plotting logic (but returns None).
  
  Parameters
  ----------
  plot_func: callable
      A Callable with the actual plotting logic. Default set to None, which implies default_plot_func is set.
  show: boolean
      A boolean to state if the plot shall be shown.
  path_to_save: (str)
      A string that specifies the path to save file.
  args: optional
      An optional with additional arguments.
  kwargs: optional
      An optional dict with additional arguments.
  
  
  Returns
  -------
  None
docstr_tok: ["Basic","plotting","functionality","for","Metric","class",".","The","user","provides","a","plot_func","(","Callable",")","that","contains","the","actual","plotting","logic","(","but","returns","None",")",".","Parameters","--","--","--","--","--","plot_func",":","callable","A","Callable","with","the","actual","plotting","logic",".","Default","set","to","None",",","which","implies","default_plot_func","is","set",".","show",":","boolean","A","boolean","to","state","if","the","plot","shall","be","shown",".","path_to_save",":","(","str",")","A","string","that","specifies","the","path","to","save","file",".","args",":","optional","An","optional","with","additional","arguments",".","kwargs",":","optional","An","optional","dict","with","additional","arguments",".","Returns","--","--","--","-","None"]
code: def plot(
      self,
      plot_func: Optional[Callable] = None,
      show: bool = True,
      path_to_save: Optional[str] = None,
      *args,
      **kwargs,
  ) -> None:
      """
      Basic plotting functionality for Metric class.
      The user provides a plot_func (Callable) that contains the actual plotting logic (but returns None).
  
      Parameters
      ----------
      plot_func: callable
          A Callable with the actual plotting logic. Default set to None, which implies default_plot_func is set.
      show: boolean
          A boolean to state if the plot shall be shown.
      path_to_save: (str)
          A string that specifies the path to save file.
      args: optional
          An optional with additional arguments.
      kwargs: optional
          An optional dict with additional arguments.
  
  
      Returns
      -------
      None
      """
      # Get plotting func if not provided.
      if plot_func is None:
          plot_func = self.default_plot_func
  
      # Asserts.
      asserts.assert_plot_func(plot_func=plot_func)
  
      # Plot!
      plot_func(*args, **kwargs)
  
      if show:
          plt.show()
  
      if path_to_save:
          plt.savefig(fname=path_to_save, dpi=400)
  
imports: from __future__ import annotations
  import functools
  import logging
  import os
  import sys
  from abc import abstractmethod
  from typing import Any, Callable, ClassVar, Dict, Generator, Generic, Sequence, Set, TypeVar, Optional, Union, TYPE_CHECKING, no_type_check
  import matplotlib.pyplot
  import numpy
  from sklearn.utils import gen_batches
  from tqdm.auto import tqdm
  from quantus.helpers import asserts, utils, warn
  from quantus.functions.normalise_func import normalise_by_max
  from quantus.helpers.enums import DataType, EvaluationCategory, ModelType, ScoreDirection
  from quantus.helpers.model.model_interface import ModelInterface
label_desc: Use image node_id 8 for calling the Metric obj's underlying member method code with example usage: obj.plot(plot_func, show, path_to_save) without return types