code: def zsqrt(x):
      with np.errstate(all="ignore"):
          result = np.sqrt(x)
          mask = x < 0
  
      if isinstance(x, ABCDataFrame):
          if mask._values.any():
              result[mask] = 0
      else:
          if mask.any():
              result[mask] = 0
  
      return result
  
file_path: pandas/pandas/core/window/common.py
imports: from __future__ import annotations
  from collections import defaultdict
  from typing import cast
  import numpy
  from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
  from pandas.core.indexes.api import MultiIndex
label_desc: Use image node_id 2 for calling a global function with example usage: zsqrt(x) and returns: result