class_docstr: A base class for splash attention masks.
class_docstr_tok: ["A","base","class","for","splash","attention","masks","."]
code: def __and__(self, other: "Mask") -> "Mask":
      if self.shape != other.shape:
          raise ValueError(
              f"Invalid shape for other: {other.shape}, expected: {self.shape}"
          )
      return LogicalAnd(self, other)
  
imports: from __future__ import annotations
  import dataclasses
  from typing import Any, Callable, Sequence, Tuple
  import numpy
label_desc: Use image node_id 5 for calling the Mask obj's underlying member method code with example usage: obj.__and__(other) and returns: LogicalAnd