code: def delete(self, index1, index2=None):
      self.addcmd(DeleteCommand(index1, index2))
  
imports: import string
  from idlelib.delegator import Delegator
label_desc: Use image node_id 10 for calling the UndoDelegator obj's underlying member method code with example usage: obj.delete(index1, index2) without return types