code: def get_chart_holder(position):
      size_x = position["size_x"]
      size_y = position["size_y"]
      slice_id = position["slice_id"]
      slice_name = position.get("slice_name")
  
      width = max(
          GRID_MIN_COLUMN_COUNT, int(round(size_x / GRID_RATIO))
      )
      height = max(
          GRID_MIN_ROW_UNITS,
          int(round(((size_y / GRID_RATIO) * 100) / ROW_HEIGHT)),
      )
      if (code := position.get("code")) is not None:
          markdown_content = " "  # white-space markdown
          if len(code):
              markdown_content = code
          elif slice_name.strip():
              markdown_content = f"##### {slice_name}"
  
          return {
              "type": MARKDOWN_TYPE,
              "id": f"DASHBOARD_MARKDOWN_TYPE-{generate_id()}",
              "children": [],
              "meta": {
                  "width": width,
                  "height": height,
                  "code": markdown_content,
              },
          }
  
      return {
          "type": CHART_TYPE,
          "id": f"DASHBOARD_CHART_TYPE-{generate_id()}",
          "children": [],
          "meta": {
              "width": width,
              "height": height,
              "chartId": int(slice_id),
          },
      }
  
imports: import collections
  import json
  import sys
  import uuid
  from functools import reduce
  from alembic import op
  from sqlalchemy import Column, ForeignKey, Integer, String, Table, Text
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.orm import relationship
  from superset import db
label_desc: Use image node_id 9 for calling a global function with example usage: get_chart_holder(position) and returns: dict, dict