input: from typing import List
  
  
  def find_close_pairs(numbers: List[float], threshold: float) -> List[float]:
      """ Given a list of numbers and a threshold, find all pairs of numbers
      that are closer to each other than the given threshold and return these pairs
      as a list of tuples.
      >>> find_close_pairs([1.0, 2.0, 3.0], 0.5)
      []
      >>> find_close_pairs([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)
      [(1.0, 2.0), (2.0, 2.8), (2.8, 2.0), (2.8, 3.0)]
      """
output:     pairs = []
      for i in range(len(numbers)):
          for j in range(i + 1, len(numbers)):
              if abs(numbers[i] - numbers[j]) < threshold:
                  pairs.append((numbers[i], numbers[j]))
                  pairs.append((numbers[j], numbers[i]))
      return pairs