code: def test_estimate_tails():
      def f(x: torch.Tensor) -> torch.Tensor:
          return 0.5 * (1.0 + torch.erf(x / math.sqrt(2)))
  
      target = 0.5 + random.randint(0, 50) / 100
  
      estimated = estimate_tails(f, target, 10)
  
      assert estimated.shape[0] == 10
  
imports: import math
  import random
  import torch
  from neuralcompression.functional import estimate_tails
label_desc: Use image node_id 1 for calling a global function with example usage: test_estimate_tails() and returns: unknown