code: def test_random_poly():
      poly = random_poly(x, 10, -100, 100, polys=False)
  
      assert Poly(poly).degree() == 10
      assert (
          all(-100 <= coeff <= 100 for coeff in Poly(poly).coeffs())
          is True
      )
  
      poly = random_poly(x, 10, -100, 100, polys=True)
  
      assert poly.degree() == 10
      assert (
          all(-100 <= coeff <= 100 for coeff in poly.coeffs()) is True
      )
  
file_path: sympy/sympy/polys/tests/test_specialpolys.py
imports: from sympy.core.add import Add
  from sympy.core.symbol import symbols
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.ntheory.generate import prime
  from sympy.polys.domains.integerring import ZZ
  from sympy.polys.polytools import Poly
  from sympy.utilities.iterables import permute_signs
  from sympy.testing.pytest import raises
  from sympy.polys.specialpolys import swinnerton_dyer_poly, cyclotomic_poly, symmetric_poly, random_poly, interpolating_poly, fateman_poly_F_1, dmp_fateman_poly_F_1, fateman_poly_F_2, dmp_fateman_poly_F_2, fateman_poly_F_3, dmp_fateman_poly_F_3
  from sympy.abc import x, y, z
label_desc: Use image node_id 4 for calling a global function with example usage: test_random_poly() without return types