class_docstr: This is the superclass of all maskers.
      
class_docstr_tok: ["This","is","the","superclass","of","all","maskers","."]
docstr: This allows users to pass True/False as short hand masks.
          
docstr_tok: ["This","allows","users","to","pass","True\/False","as","short","hand","masks","."]
code: def _standardize_mask(self, mask, *args):
      """This allows users to pass True/False as short hand masks."""
      if mask is True or mask is False:
          if callable(self.shape):
              shape = self.shape(*args)
          else:
              shape = self.shape
  
          if mask is True:
              return np.ones(shape[1], dtype=bool)
          return np.zeros(shape[1], dtype=bool)
      return mask
  
imports: import numpy
  from .._serializable import Serializable
label_desc: Use image node_id 2 for calling the Masker obj's underlying member method code with example usage: obj._standardize_mask(mask) and returns: mask, np, np