code: def test_bound_methods(self):
      m = Mock()
  
      # XXXX should this be an expected failure instead?
  
      # this seems like it should work, but is hard to do without introducing
      # other api inconsistencies. Failure message could be better though.
      m.__iter__ = [3].__iter__
      self.assertRaises(TypeError, iter, m)
  
imports: import math
  import unittest
  import os
  from asyncio import iscoroutinefunction
  from unittest.mock import AsyncMock, Mock, MagicMock, _magics
label_desc: Use image node_id 27 for calling the TestMockingMagicMethods obj's underlying member method code with example usage: obj.test_bound_methods() without return types