def METHOD_NAME(msg: msg.WorldState) -> PartialWorldState:
    """
    :return: partial world state class representing the state of the robots and ball.
    """
    our_robots: List[RobotState]
    our_robots = []
    their_robots: List[RobotState]
    their_robots = []
    for i in range(len(msg.our_robots)):
        our_robots.append(robotstate_to_partial_robot(msg.our_robots[i], i))
    for i in range(len(msg.their_robots)):
        their_robots.append(robotstate_to_partial_robot(msg.their_robots[i], i))
    ball = ballstate_to_ball(msg.ball)
    world_state = PartialWorldState(our_robots, their_robots, ball)
    return world_state