code: def test_mock_open_context_manager_multiple_times(self):
      mock = mock_open()
      with patch("%s.open" % __name__, mock, create=True):
          with open("foo") as f:
              f.read()
          with open("bar") as f:
              f.read()
  
      expected_calls = [
          call("foo"),
          call().__enter__(),
          call().read(),
          call().__exit__(None, None, None),
          call().close(),
          call("bar"),
          call().__enter__(),
          call().read(),
          call().__exit__(None, None, None),
          call().close(),
      ]
      self.assertEqual(mock.mock_calls, expected_calls)
  
imports: import unittest
  from warnings import catch_warnings
  from test.test_unittest.testmock.support import is_instance
  from unittest.mock import MagicMock, Mock, patch, sentinel, mock_open, call
label_desc: Use image node_id 3 for calling the TestMockOpen obj's underlying member method code with example usage: obj.test_mock_open_context_manager_multiple_times() without return types