code: def standard_normal_log_hazard(x: Tensor) -> Tensor:
      """Computes the logarithm of the hazard function of the standard normal
      distribution, i.e. `log(phi(x) / Phi(-x))`.
  
      Args:
          x: A tensor of any shape, with either float32 or float64 dtypes.
  
      Returns:
          A Tensor of the same shape `x`, containing the values of the logarithm of the
          hazard function evaluated at `x`.
      """
      # NOTE: using _inv_sqrt_2 instead of _neg_inv_sqrt_2 means we are computing Phi(-x).
      a, b = get_constants_like((_log_two_inv_sqrt_2pi, _inv_sqrt_2), x)
      return a - log_erfcx(b * x)
  
imports: from __future__ import annotations
  import math
  from functools import lru_cache
  from math import pi
  from numbers import Number
  from typing import Any, Callable, Iterable, Iterator, Optional, Tuple, Union
  import torch
  from botorch.utils.safe_math import logdiffexp
  from numpy.polynomial.legendre import leggauss
  from torch import BoolTensor, LongTensor, Tensor
label_desc: Use image node_id 13 for calling a global function with example usage: standard_normal_log_hazard(x) and returns: unknown