def METHOD_NAME(self, robot: stp.rc.Robot, cost: float) -> None:
    """Assigns self.role to the passed in robot, updating self.cost to the
    assignment cost.
    :param robot: Robot to use for the role.
    :param cost: The cost of the assignment.
    """
    self.role.robot = robot
    self.cost = cost