code: def merge_slice(slc: Slice) -> None:
      o = (
          db.session.query(Slice)
          .filter_by(slice_name=slc.slice_name)
          .first()
      )
      if o:
          db.session.delete(o)
      db.session.add(slc)
      db.session.commit()
  
file_path: superset/superset/examples/helpers.py
imports: import json
  import os
  from typing import Any
  from superset import app, db
  from superset.connectors.sqla.models import SqlaTable
  from superset.models.slice import Slice
label_desc: Use image node_id 4 for calling a global function with example usage: merge_slice(slc) without return types