code: def test_memoryview(method, args, fmt, expected_view):
      view = method(*args)
      assert isinstance(view, memoryview)
      assert view.format == fmt
      assert list(view) == list(expected_view)
  
imports: import contextlib
  import sys
  import types
  import pytest
  import env
  from pybind11_tests import detailed_error_messages_enabled
  from pybind11_tests import pytypes
label_desc: Use image node_id 33 for calling a global function with example usage: test_memoryview(method, args, fmt, expected_view) without return types