    def extend(self, values: Iterable[Any]) -> "ParameterList":
        """Appends values from a Python iterable to the end of the list.

        Args:
            values (iterable): iterable of values to append
        """
        # Tensor is an iterable but we never want to unpack it here
        if not isinstance(values, container_abcs.Iterable) or isinstance(
            values, Tensor
        ):
            raise TypeError(
                "ParameterList.extend should be called with an "
                "iterable, but got " + type(values).__name__
            )
        for value in values:
            self.append(value)
        return self
Appends values from a Python iterable to the end of the list.

Args:
values (iterable): iterable of values to append
python/aitemplate/frontend/nn/container.py