docs: def guess_interval(nums, accuracy=0):
      """Given a seq of number, return the median, only calculate interval >= accuracy.
  
      ::
  
          from torequests.utils import guess_interval
          import random
  
          seq = [random.randint(1, 100) for i in range(20)]
          print(guess_interval(seq, 5))
          # sorted_seq: [2, 10, 12, 19, 19, 29, 30, 32, 38, 40, 41, 54, 62, 69, 75, 79, 82, 88, 97, 99]
          # diffs: [8, 7, 10, 6, 13, 8, 7, 6, 6, 9]
          # median: 8
      """
      if not nums:
          return 0
      nums = sorted([int(i) for i in nums])
      if len(nums) == 1:
          return nums[0]
      diffs = [nums[i + 1] - nums[i] for i in range(len(nums) - 1)]
      diffs = [item for item in diffs if item >= accuracy]
      sorted_diff = sorted(diffs)
      result = sorted_diff[len(diffs) // 2]
      return result