def _sanitize_list_like(operand: Any) -> None:
    'Raise TypeError if operand is list-like.'
    if isinstance(operand, (list, tuple, dict, set)):
        raise TypeError(('The operation can not be applied to %s.' % type(operand).__name__))
Raise TypeError if operand is list-like.
def _sanitize_list_like(operand: Any) -> None:
    
    if isinstance(operand, (list, tuple, dict, set)):
        raise TypeError(('The operation can not be applied to %s.' % type(operand).__name__))