def wrap(val: PauliSumLike) -> PauliSum:
        """Convert a `cirq.PauliSumLike` object to a PauliSum

        Attempts to convert an existing int, float, complex, `cirq.PauliString`,
        `cirq.PauliSum` or `cirq.SingleQubitPauliStringGateOperation` into
        a `cirq.PauliSum` object. For example:


        >>> my_psum = cirq.PauliSum.wrap(2.345)
        >>> my_psum
        cirq.PauliSum(cirq.LinearDict({frozenset(): (2.345+0j)}))


        Args:
            `cirq.PauliSumLike` to convert to PauliSum.

        Returns:
            PauliSum representation of `val`.
        """
        if isinstance(val, PauliSum):
            return val
        return PauliSum() + val
Convert a `cirq.PauliSumLike` object to a PauliSum

        Attempts to convert an existing int, float, complex, `cirq.PauliString`,
        `cirq.PauliSum` or `cirq.SingleQubitPauliStringGateOperation` into
        a `cirq.PauliSum` object. For example:


        >>> my_psum = cirq.PauliSum.wrap(2.345)
        >>> my_psum
        cirq.PauliSum(cirq.LinearDict({frozenset(): (2.345+0j)}))


        Args:
            `cirq.PauliSumLike` to convert to PauliSum.

        Returns:
            PauliSum representation of `val`.
        
cirq-core/cirq/ops/linear_combinations.py