code: def test_nep50_complex_promotion():
      np._set_promotion_state("weak")
  
      with pytest.warns(RuntimeWarning, match=".*overflow"):
          res = np.complex64(3) + complex(2**300)
  
      assert type(res) == np.complex64
  
file_path: catboost/contrib/python/numpy/py3/numpy/core/tests/test_nep50_promotions.py
imports: import operator
  import numpy
  import pytest
  from numpy.testing import IS_WASM
label_desc: Use image node_id 6 for calling a global function with example usage: test_nep50_complex_promotion() without return types