<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def with_division(self, division):
 """Add a division segment Args: division (str):
 Official name of an electoral division. Returns: IdBuilder Raises: ValueError """

        if division is None:
            division = ''
        division = slugify(division)
        self._validate_division(division)
        self.division = division
        return self