def getCubeByID(self, id : int):
    """Gets a cube object from the cozmo world using the ID provided.

    Arguments:
        id : An integer representing a cube ID. Can only be 1, 2, or 3.

    Returns:
        A light cube object from the Cozmo library.
    """
    #Check that ID is in range
    if not 1 <= id <= 3:
        #log issue
        self.log.warning("Cube id must be in the range 1 to 3")
        self.log.error("The id provided was %d\n" % id)
        return None

    #return the correct cube
    return self.robot.world.get_light_cube(id)