code: def require_secrets(request: SubRequest) -> Iterator[bool]:
      yield bool(request.config.getoption("--require-secrets"))
  
imports: from typing import Any, Iterator, List
  import pytest
  from _pytest.fixtures import SubRequest
label_desc: Use image node_id 2 for calling a global function with example usage: require_secrets(request) without return types