qiskit/extensions/simulator/snapshot.py
def label(self, name):
        """Set snapshot label to name

        Args:
            name (str or None): label to assign unitary

        Raises:
            TypeError: name is not string or None.
        """
        if isinstance(name, str):
            self._label = name
        else:
            raise TypeError('label expects a string')
def label(self, name):
        if isinstance(name, str):
            self._label = name
        else:
            raise TypeError('label expects a string')
def label ( self , name ) : if isinstance ( name , str ) : self . _label = name else : raise TypeError ( 'label expects a string' )
Set snapshot label to name

        Args:
            name (str or None): label to assign unitary

        Raises:
            TypeError: name is not string or None.
Set snapshot label to name