class_docstr: gh-15467 and gh-19125 
class_docstr_tok: ["gh-15467","and","gh-19125"]
code: def test_complex_errors(self, t):
      with pytest.raises(TypeError):
          t(1j, 1j)
      with pytest.raises(TypeError):
          t(1, None)
      with pytest.raises(TypeError):
          t(None, 1)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_equal, assert_almost_equal, assert_warns
label_desc: Use image node_id 5 for calling the TestArrayFromScalar obj's underlying member method code with example usage: obj.test_complex_errors(t) without return types