code: def test_deprecation_indirect():
      # If the line that calls "deprecation" is not internal, it is considered the source:
      with pytest.warns(DeprecationWarning) as record:
          call_method(deprecation, "test message", [])
      assert len(record) == 1
      assert record[0].filename == CALL_PATH
  
file_path: catboost/contrib/python/ipywidgets/py3/ipywidgets/widgets/tests/test_utils.py
imports: import inspect
  import pytest
  from ..utils import deprecation
  from .utils import call_method
label_desc: Use image node_id 2 for calling a global function with example usage: test_deprecation_indirect() without return types