def METHOD_NAME(in_, out, use_maya):
    """Test that :func:`to_gps` works with and without maya.
    """
    if use_maya:  # do nothing
        ctx = nullcontext()
    else:  # force 'install maya' to error to use dateutil
        ctx = mock.patch.dict("sys.modules", {"maya": None})
    with ctx:
        assert time.to_gps(in_) == out