code: def survival_function(
      x: Tensor,
      distribution: Distribution,
  ) -> Tensor:
      """Survival function of :math:`x`. Generally defined as
      ``1 - distribution.cdf(x)``.
  
      Args:
          x: the input tensor.
          distribution: an object representing a continuous-valued random
              variable.
  
      Returns:
          the survival function of :math:`x` for the continuous-valued random
          variable distribution.
      """
      if isinstance(distribution, Normal):
          standardized = torch.div(
              (x - distribution.loc), distribution.scale
          )
  
          return ndtr(-standardized)
  
      return 1.0 - distribution.cdf(x)
  
imports: import torch
  from torch import Tensor
  from torch.distributions import Distribution, Normal
  from ._ndtr import ndtr
label_desc: Use image node_id 1 for calling a global function with example usage: survival_function(x, distribution) and returns: unknown, ndtr