code: def if_test_env(then: Any, otherwise: Any) -> Any:
      return then if "PYTEST_CURRENT_TEST" in os.environ else otherwise
  
imports: import os
  from pathlib import Path
  from typing import Any
label_desc: Use image node_id 2 for calling a global function with example usage: if_test_env(then, otherwise) and returns: unknown