    def from_two_input_lists(
        cls,
        inputs1: List[Union[torch.Tensor, List[torch.Tensor]]],
        inputs2: List[Union[torch.Tensor, List[torch.Tensor]]],
    ) -> List["TensorSpec"]:
        """
        This function is useful when we expect multiple dynamic dims.

        The parent graph can receive two sets of inputs:
        1. with min dynamic dim values,
        2. with max dynamic dim values.

        After FX splitter logic is applied and lowerable subgraph sample inputs
        are inferred, we make two assumptions:
        1. two lists of inferred inputs will differ at dynamic dimensions,
        2. the difference numbers will be the dynamic ranges, i.e. min and max.

        TODO: The assumptions above are not ideal, and, in theory, we should do
        symbolic shape propagation using something like SymPy.
        """
        if len(inputs1) != len(inputs2):
            raise ValueError(
                f"Different number of inputs: {len(inputs1)} vs {len(inputs2)}"
            )

        result: List[TensorSpec] = []

        for t1, t2 in zip(inputs1, inputs2):
            if isinstance(t1, list):
                result.append(cls.from_two_input_lists(t1, t2))
                continue
            if t1.dtype != t2.dtype:
                raise ValueError(f"Different types: {t1.dtype} vs {t2.dtype}")
            if len(t1.shape) != len(t2.shape):
                raise ValueError(
                    f"Different tensor sizes: {len(t1.shape)} vs {len(t2.shape)}"
                )
            shape: List[IntVar] = []
            for i, (d1, d2) in enumerate(zip(t1.shape, t2.shape)):
                if d1 == d2:
                    shape.append(IntImm(d1))
                else:
                    shape.append(IntVar([min(d1, d2), max(d1, d2)], f"dynamic_dim_{i}"))
            result.append(TensorSpec(shape, t1.dtype))

        return result
This function is useful when we expect multiple dynamic dims.

The parent graph can receive two sets of inputs:
1. with min dynamic dim values,
2. with max dynamic dim values.

After FX splitter logic is applied and lowerable subgraph sample inputs
are inferred, we make two assumptions:
1. two lists of inferred inputs will differ at dynamic dimensions,
2. the difference numbers will be the dynamic ranges, i.e. min and max.

TODO: The assumptions above are not ideal, and, in theory, we should do
symbolic shape propagation using something like SymPy.
fx2ait/fx2ait/tensor_spec.py