def METHOD_NAME(recwarn):
    inuma = ICRS(9 * u.hour, 65 * u.deg)
    n_prewarn = len(recwarn)
    res = get_constellation(inuma)
    res_short = get_constellation(inuma, short_name=True)
    assert len(recwarn) == n_prewarn  # neither version should not make warnings
    assert res == "Ursa Major"
    assert res_short == "UMa"
    assert isinstance(res, str) or getattr(res, "shape", None) == tuple()
    # these are taken from the ReadMe for Roman 1987
    ras = [9, 23.5, 5.12, 9.4555, 12.8888, 15.6687, 19, 6.2222]
    decs = [65, -20, 9.12, -19.9, 22, -12.1234, -40, -81.1234]
    shortnames = ["UMa", "Aqr", "Ori", "Hya", "Com", "Lib", "CrA", "Men"]
    testcoos = FK5(ras * u.hour, decs * u.deg, equinox="B1950")
    npt.assert_equal(get_constellation(testcoos, short_name=True), shortnames)
    # test on a SkyCoord, *and* test Boötes, which is special in that it has a
    # non-ASCII character
    boores = get_constellation(SkyCoord(15 * u.hour, 30 * u.deg, frame="icrs"))
    assert boores == "Boötes"
    assert isinstance(boores, str) or getattr(boores, "shape", None) == tuple()