input: Write a function to get the third largest distinct element in a given row. If the given row has less than three distinct elements, return None. If the given row is empty, return None.
  assert third_largest([12, 13, 13, 45, 22, 99])==22
  assert third_largest([3, 5, 10, 1, 2])==3
  assert third_largest([4, 3, 1, 2, 4, 3])==2
  assert third_largest([3, 5, 4, 1, 2, 5])==3
  assert third_largest([])==None
output: def third_largest(row):
      if not row:
          return None
      distinct_elements = list(set(row))
      if len(distinct_elements) < 3:
          return None
      distinct_elements.sort(reverse=True)
      return distinct_elements[2]