docstr: :param graph_type:
  :param kwargs:
  :return:
docstr_tok: [":","param","graph_type",":",":","param","kwargs",":",":","return",":"]
code: def get_instance_with_graph_parameters(
      graph_type: str = None, **kwargs
  ):
      """
  
      :param graph_type:
      :param kwargs:
      :return:
      """
      try:
          _graph_module = importlib.import_module("plotly.graph_objs")
          _graph_class = getattr(_graph_module, graph_type)
      except AttributeError:
          _graph_module = importlib.import_module(
              "qlib.contrib.report.graph"
          )
          _graph_class = getattr(_graph_module, graph_type)
      return _graph_class(**kwargs)
  
imports: import math
  import importlib
  from typing import Iterable
  import pandas
  import plotly.offline
  import plotly.graph_objs
  from plotly.subplots import make_subplots
  from plotly.figure_factory import create_distplot
label_desc: Use image node_id 4 for calling the BaseGraph obj's underlying member method code with example usage: obj.get_instance_with_graph_parameters(graph_type) and returns: _graph_class