code: def _rms(x, eps=1e-7):
      if torch.is_tensor(x):
          return torch.sqrt((x**2.0).sum() / x.numel()).clamp_min(eps)
      else:
          return torch.sqrt(
              sum((x_**2.0).sum() for x_ in x)
              / sum(x_.numel() for x_ in x)
          ).clamp_min(eps)
  
imports: import torch
  from .None import misc
  from ..types import TensorOrTensors
label_desc: Use image node_id 3 for calling a global function with example usage: _rms(x, eps) and returns: torch, torch