code: def _std(x, axis, ddof, keepdims):
      axis = tuple(range(x.dim())) if axis is None else axis
      if ddof == 0:
          return torch.std(x, axis, unbiased=False, keepdim=keepdims)
      if ddof == 1:
          return torch.std(x, axis, keepdim=keepdims)
      raise NotImplementedError
  
imports: import numbers
  import typing
  import torch
  import funsor.ops
label_desc: Use image node_id 10 for calling a global function with example usage: _std(x, axis, ddof, keepdims) and returns: torch, torch