code: def test__pt():
      from sympy.solvers.inequalities import _pt
  
      assert _pt(-oo, oo) == 0
      assert _pt(S.One, S(3)) == 2
      assert _pt(S.One, oo) == _pt(oo, S.One) == 2
      assert _pt(S.One, -oo) == _pt(-oo, S.One) == S.Half
      assert (
          _pt(S.NegativeOne, oo)
          == _pt(oo, S.NegativeOne)
          == Rational(-1, 2)
      )
      assert _pt(S.NegativeOne, -oo) == _pt(-oo, S.NegativeOne) == -2
      assert _pt(x, oo) == _pt(oo, x) == x + 1
      assert _pt(x, -oo) == _pt(-oo, x) == x - 1
      raises(ValueError, lambda: _pt(Dummy("i", infinite=True), S.One))
  
imports: from sympy.concrete.summations import Sum
  from sympy.core.function import Function
  from sympy.core.numbers import I, Rational, oo, pi
  from sympy.core.relational import Eq, Ge, Gt, Le, Lt, Ne
  from sympy.core.singleton import S
  from sympy.core.symbol import Dummy, Symbol
  from sympy.functions.elementary.complexes import Abs
  from sympy.functions.elementary.exponential import exp, log
  from sympy.functions.elementary.miscellaneous import root, sqrt
  from sympy.functions.elementary.piecewise import Piecewise
  from sympy.functions.elementary.trigonometric import cos, sin, tan
  from sympy.integrals.integrals import Integral
  from sympy.logic.boolalg import And, Or
  from sympy.polys.polytools import Poly, PurePoly
  from sympy.sets.sets import FiniteSet, Interval, Union
  from sympy.solvers.inequalities import reduce_inequalities, solve_poly_inequality, reduce_rational_inequalities, solve_univariate_inequality, reduce_abs_inequality, _solve_inequality
  from sympy.polys.rootoftools import rootof
  from sympy.solvers.solvers import solve
  from sympy.solvers.solveset import solveset
  from sympy.core.mod import Mod
  from sympy.abc import x, y
  from sympy.testing.pytest import raises, XFAIL
label_desc: Use image node_id 27 for calling a global function with example usage: test__pt() without return types