code: def _warn(msg, sdk_version=None):
      """Generic warning raiser referencing V2
  
      Args:
          phrase: The phrase to include in the warning.
          sdk_version: the sdk version of removal of support.
      """
      _sdk_version = sdk_version if sdk_version is not None else "2"
      full_msg = f"{msg} in sagemaker>={_sdk_version}.\nSee: {V2_URL} for details."
      warnings.warn(full_msg, DeprecationWarning, stacklevel=2)
      logger.warning(full_msg)
  
file_path: sagemaker-python-sdk/src/sagemaker/deprecations.py
imports: from __future__ import absolute_import
  import logging
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: _warn(msg, sdk_version) without return types