docstr: Regression test for gh-16354.
docstr_tok: ["Regression","test","for","gh-16354","."]
code: def test_zero_poly_dtype(self):
      """
      Regression test for gh-16354.
      """
      z = np.array([0, 0, 0])
      p = np.poly1d(z.astype(np.int64))
      assert_equal(p.coeffs.dtype, np.int64)
  
      p = np.poly1d(z.astype(np.float32))
      assert_equal(p.coeffs.dtype, np.float32)
  
      p = np.poly1d(z.astype(np.complex64))
      assert_equal(p.coeffs.dtype, np.complex64)
  
imports: import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_allclose
  import pytest
label_desc: Use image node_id 15 for calling the TestPolynomial obj's underlying member method code with example usage: obj.test_zero_poly_dtype() without return types