class_docstr: Create object used for visualizing graph using Pyvis library.
class_docstr_tok: ["Create","object","used","for","visualizing","graph","using","Pyvis","library","."]
docstr: Generate lengend div line for each graph component in graph_styles.
docstr_tok: ["Generate","lengend","div","line","for","each","graph","component","in","graph_styles","."]
code: def _get_legend_line(self, component_name):
      """Generate lengend div line for each graph component in graph_styles."""
      if self.graph_styles[component_name]["isShape"] == "False":
          return '<div><div style="background-color: {color}; width: 1.6vw; height: 1.6vw;\
                  display: inline-block; font-size: 1.5vw; vertical-align: -0.2em;"></div>\
                  <div style="width: 0.3vw; height: 1.5vw; display: inline-block;"></div>\
                  <div style="display: inline-block; font-size: 1.5vw;">{name}</div></div>'.format(
              color=self.graph_styles[component_name]["style"][
                  "background-color"
              ],
              name=self.graph_styles[component_name]["name"],
          )
  
      return '<div style="background-color: #ffffff; width: 1.6vw; height: 1.6vw;\
              display: inline-block; font-size: 0.9vw; vertical-align: -0.2em;">{shape}</div>\
              <div style="width: 0.3vw; height: 1.5vw; display: inline-block;"></div>\
              <div style="display: inline-block; font-size: 1.5vw;">{name}</div></div>'.format(
          shape=self.graph_styles[component_name]["style"]["shape"],
          name=self.graph_styles[component_name]["name"],
      )
  
imports: from __future__ import absolute_import
  from datetime import datetime
  from enum import Enum
  from typing import Any, Optional, Union, List, Dict
  from json import dumps
  from re import sub, search
  from sagemaker.utils import get_module
  from sagemaker.lineage._utils import get_resource_name_from_arn
label_desc: Use image node_id 4 for calling the PyvisVisualizer obj's underlying member method code with example usage: obj._get_legend_line(component_name) and returns: str, str