code: def msign(x):
      """Returns the sign of x, or 0 if x is masked."""
      return ma.filled(np.sign(x), 0)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy import ndarray
  import numpy.ma
  from numpy.ma import masked, nomask
  from scipy._lib.six import iteritems
  import itertools
  import warnings
  from collections import namedtuple
  from .None import distributions
  import scipy.special
  from ._stats_mstats_common import _find_repeats, linregress, theilslopes, siegelslopes
label_desc: Use image node_id 10 for calling a global function with example usage: msign(x) and returns: ma