code: def with_default_component_id(func):
      def ret_func(self, *args, **kwargs):
          if self.component_id is None:
              self.component_id = create_component_id(self)
          return func(self, *args, **kwargs)
  
      return ret_func
  
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 2 for calling a global function with example usage: with_default_component_id(func) and returns: ret_func, func