parameters: (self)
return_statement: return self
docstring: Copy the mask and set the sharedmask flag to False.
  
          Whether the mask is shared between masked arrays can be seen from
          the `sharedmask` property. `unshare_mask` ensures the mask is not shared.
          A copy of the mask is only made if it was shared.
  
          See Also
          --------
          sharedmask
docstring_summary: Copy the mask and set the sharedmask flag to False.
docstring_tokens: Copy the mask and set the sharedmask flag to False .
function: def unshare_mask(self):
          """
          Copy the mask and set the sharedmask flag to False.
  
          Whether the mask is shared between masked arrays can be seen from
          the `sharedmask` property. `unshare_mask` ensures the mask is not shared.
          A copy of the mask is only made if it was shared.
  
          See Also
          --------
          sharedmask
  
          """
          if self._sharedmask:
              self._mask = self._mask.copy()
              self._sharedmask = False
          return self
function_tokens: def unshare_mask ( self ) : if self . _sharedmask : self . _mask = self . _mask . copy ( ) self . _sharedmask = False return self