code: def test_series():
      x, y = symbols("x,y")
      assert floor(x).nseries(x, y, 100) == floor(y)
      assert ceiling(x).nseries(x, y, 100) == ceiling(y)
      assert floor(x).nseries(x, pi, 100) == 3
      assert ceiling(x).nseries(x, pi, 100) == 4
      assert floor(x).nseries(x, 0, 100) == 0
      assert ceiling(x).nseries(x, 0, 100) == 1
      assert floor(-x).nseries(x, 0, 100) == -1
      assert ceiling(-x).nseries(x, 0, 100) == 0
  
imports: from sympy.calculus.accumulationbounds import AccumBounds
  from sympy.core.numbers import E, Float, I, Rational, nan, oo, pi, zoo
  from sympy.core.relational import Eq, Ge, Gt, Le, Lt, Ne
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.functions.combinatorial.factorials import factorial
  from sympy.functions.elementary.exponential import exp, log
  from sympy.functions.elementary.integers import ceiling, floor, frac
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.functions.elementary.trigonometric import sin, cos, tan
  from sympy.polys.rootoftools import RootOf, CRootOf
  from sympy import Integers
  from sympy.sets.sets import Interval
  from sympy.sets.fancysets import ImageSet
  from sympy.core.function import Lambda
  from sympy.core.expr import unchanged
  from sympy.testing.pytest import XFAIL, raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_series() without return types