def METHOD_NAME(n, x=None, **args):
    """Generates Chebyshev polynomial of the second kind of degree `n` in `x`."""
    if n < 0:
        raise ValueError(
            f"can't generate 2nd kind Chebyshev polynomial of degree {n}")
    poly = _chebyshevu(int(n), ZZ)
    if x is not None:
        poly = Poly(poly, x, domain=ZZ)
    else:
        poly = PurePoly(poly, Dummy('x'), domain=ZZ)
    if not args.get('polys', False):
        return poly.as_expr()
    return poly