code: def is_pytest_environment() -> bool:
      """Helper function to check if pytest environment or not"""
      logger.warning(
          DeprecationWarning(
              "utils.object_utils.is_pytest_environment is deprecated. Please use"
              " common.is_test_env instead."
          )
      )
      return is_test_env()
  
file_path: ml-cvnets/utils/object_utils.py
imports: import sys
  from numbers import Number
  from typing import Dict
  from common import is_test_env
  from utils import logger
label_desc: Use image node_id 4 for calling a global function with example usage: is_pytest_environment() and returns: is_test_env