code: def raises_chained_assignment_error():
      if PYPY:
          from contextlib import nullcontext
  
          return nullcontext()
      else:
          from pandas._testing import assert_produces_warning
  
          return assert_produces_warning(
              ChainedAssignmentError,
              match=(
                  "A value is trying to be set on a copy of a DataFrame or Series "
                  "through chained assignment"
              ),
          )
  
file_path: catboost/contrib/python/pandas/py3/pandas/_testing/contexts.py
imports: from __future__ import annotations
  from contextlib import contextmanager
  import os
  from pathlib import Path
  import tempfile
  from typing import IO, Any, Generator
  import uuid
  from pandas._typing import BaseBuffer, CompressionOptions, FilePath
  from pandas.compat import PYPY
  from pandas.errors import ChainedAssignmentError
  from pandas import set_option
  from pandas.io.common import get_handle
label_desc: Use image node_id 7 for calling a global function with example usage: raises_chained_assignment_error() and returns: nullcontext, assert_produces_warning