code: def _init_hard_mask(self, hard_mask):
      ivy.utils.assertions.check_isinstance(hard_mask, bool)
      self._hard_mask = hard_mask
  
imports: import ivy
  import ivy.functional.frontends.numpy
  import numpy
label_desc: Use image node_id 6 for calling the MaskedArray obj's underlying member method code with example usage: obj._init_hard_mask(hard_mask) without return types