code: def __init__(self, spec: dict, show_controls: bool = False):
      self._spec = spec
      self._show_controls = show_controls
      self._chart_inside_table = False
  
imports: from typing import Any, List, Optional, Union
  from .basic import LogComponent, ErrorComponent, ArtifactsComponent, TableComponent, ImageComponent, SectionComponent, MarkdownComponent
  from .card import MetaflowCardComponent
  from .convert_to_native_type import TaskToDict, _full_classname
  from .renderer_tools import render_safely
  import uuid
label_desc: Use image node_id 1 to create a new VegaChart object from inherited base classes: UserComponent with example: obj = VegaChart(spec, show_controls)