input: from typing import List
  
  def calculate_fibonacci_sequence(n: int) -> List[int]:
      """ Calculate the Fibonacci sequence up to the nth term.
      >>> calculate_fibonacci_sequence(9)
      [0, 1, 1, 2, 3, 5, 8, 13, 21]
      >>> calculate_fibonacci_sequence(0)
      [0]
      >>> calculate_fibonacci_sequence(1)
      [0, 1]
      """
      if n < 0:
          return []
      elif n == 0:
          return [0]
      
      fib_sequence = [0, 1]
      for i in range(2, n + 1):
          fib_sequence.append(fib_sequence[-1] + fib_sequence[-2])
      
      return fib_sequence[:n + 1]
output:     if n < 0:
          return []
      elif n == 0:
          return [0]
      
      fib_sequence = [0, 1]
      for i in range(2, n + 1):
          fib_sequence.append(fib_sequence[-1] + fib_sequence[-2])
      
      return fib_sequence[:n + 1]