code: def write(self, *args):
      self.written.append(args)
  
imports: from idlelib import run
  import io
  import sys
  from test.support import captured_output, captured_stderr
  import unittest
  from unittest import mock
  import idlelib
  from idlelib.idle_test.mock_idle import Func
label_desc: Use image node_id 2 for calling the MockShell obj's underlying member method code with example usage: obj.write() without return types