code: def tiny2zero(x, eps=1e-15):
      """replace abs values smaller than eps by zero, makes copy"""
      mask = np.abs(x.copy()) < eps
      x[mask] = 0
      return x
  
imports: import numpy
  from scipy import linalg
  from statsmodels.tools.decorators import cache_readonly
label_desc: Use image node_id 2 for calling a global function with example usage: tiny2zero(x, eps) and returns: x