code: def set_marks(self, text, marks):
      for name, index in marks.items():
          text.mark_set(name, index)
  
imports: import string
  from idlelib.delegator import Delegator
label_desc: Use image node_id 8 for calling the Command obj's underlying member method code with example usage: obj.set_marks(text, marks) without return types