code: def __init__(self, p: float = 0.5, inplace: bool = False) -> None:
      super().__init__()
      if p < 0 or p > 1:
          raise ValueError(
              f"dropout probability has to be between 0 and 1, but got {p}"
          )
      self.p = p
      self.inplace = inplace
  
imports: from .module import Module
  from ..None import functional
  from torch import Tensor
label_desc: Use image node_id 1 to create a new _DropoutNd object from inherited base classes: Module with example: obj = _DropoutNd(p, inplace)