code: def test_polynomial_atoms(self):
      x = as_symbol("x")
      y = as_symbol("y")
      n = as_number(123)
  
      assert x.polynomial_atoms() == {x}
      assert n.polynomial_atoms() == set()
      assert (y[x]).polynomial_atoms() == {y[x]}
      assert (y(x)).polynomial_atoms() == {y(x)}
      assert (y(x) + x).polynomial_atoms() == {y(x), x}
      assert (y(x) * x[y]).polynomial_atoms() == {y(x), x[y]}
      assert (y(x) ** x).polynomial_atoms() == {y(x)}
  
file_path: catboost/contrib/python/numpy/py3/numpy/f2py/tests/test_symbolic.py
imports: import pytest
  from numpy.f2py.symbolic import Expr, Op, ArithOp, Language, as_symbol, as_number, as_string, as_array, as_complex, as_terms, as_factors, eliminate_quotes, insert_quotes, fromstring, as_expr, as_apply, as_numer_denom, as_ternary, as_ref, as_deref, normalize, as_eq, as_ne, as_lt, as_gt, as_le, as_ge
  from .None import util
label_desc: Use image node_id 11 for calling the TestSymbolic obj's underlying member method code with example usage: obj.test_polynomial_atoms() without return types