def METHOD_NAME(ball_msg: msg.BallState) -> rc.Ball:
    """
    :return: ball class representing the state of the ball.
    """
    x = ball_msg.position.x
    y = ball_msg.position.y
    pos = np.array([x, y])
    dx = ball_msg.velocity.x
    dy = ball_msg.velocity.y
    vel = np.array([dx, dy])
    visible = ball_msg.visible
    ball = rc.Ball(pos, vel, visible)
    return ball