code: def test_filterwarnings_mark_registration(pytester: Pytester) -> None:
      """Ensure filterwarnings mark is registered"""
      pytester.makepyfile(
          """
          import pytest
  
          @pytest.mark.filterwarnings('error')
          def test_func():
              pass
      """
      )
      result = pytester.runpytest("--strict-markers")
      assert result.ret == 0
  
imports: import os
  import sys
  import warnings
  from typing import List
  from typing import Optional
  from typing import Tuple
  import pytest
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import Pytester
label_desc: Use image node_id 10 for calling a global function with example usage: test_filterwarnings_mark_registration(pytester) without return types