def _check_aligned_value(self, value):
if isinstance(value, Iterable) and not isinstance(<EOL>value, (str, dict, bytes, bytearray)):<EOL><INDENT>assert len(value) == len(self._values), "<STR_LIT>""<STR_LIT>".format(<EOL>len(value), len(self._values))<EOL>values = value<EOL><DEDENT>else:<EOL><INDENT>values = [value] * len(self._values)<EOL><DEDENT>return values<EOL>
Check the value input whenever get_aligned_collection is called.