code: def do(self, text):
      self.marks_before = self.save_marks(text)
      self.index1 = text.index(self.index1)
      if text.compare(self.index1, ">", "end-1c"):
          # Insert before the final newline
          self.index1 = text.index("end-1c")
      text.insert(self.index1, self.chars, self.tags)
      self.index2 = text.index(
          "%s+%dc" % (self.index1, len(self.chars))
      )
      self.marks_after = self.save_marks(text)
  
imports: import string
  from idlelib.delegator import Delegator
label_desc: Use image node_id 2 for calling the InsertCommand obj's underlying member method code with example usage: obj.do(text) without return types