code: def delete(snapshot_id=None):
      """Delete a snapshot within a project
  
      The project must be created before this is implemented. You can do that by using
      the following command::
  
          $ datmo init
  
  
      Parameters
      ----------
      snapshot_id : str
          snapshot id to be updated
  
      Returns
      -------
      snapshot entity
          returns a Snapshot entity
  
      Examples
      --------
      You can use this function within a project repository to delete a snapshot.
  
      >>> import datmo
      >>> datmo.snapshot.delete(snapshot_id="4L24adFfsa")
      """
      snapshot_controller = SnapshotController()
  
      snapshot_controller.delete(snapshot_id=snapshot_id)
  
file_path: datmo/datmo/snapshot.py
imports: import os
  from datmo.core.controller.snapshot import SnapshotController
  from datmo.core.entity.snapshot import Snapshot
  from datmo.core.util.exceptions import InvalidArgumentType, SnapshotCreateFromTaskArgs
  from datmo.core.util.misc_functions import prettify_datetime, format_table
label_desc: Use image node_id 4 for calling a global function with example usage: delete(snapshot_id) without return types