input: Write a python function to create a booking, view its details, edit its details, and cancel it using the Booking class.
  assert booking1.name == "John Doe"
  assert booking1.date == "2023-10-12"
  assert booking1.time == "14:00"
  assert booking1.name == "Jane Doe"
  assert booking1.date == "2023-10-15"
  assert booking1.time == "16:00"
  assert booking1.name is None
  assert booking1.date is None
  assert booking1.time is None
output: class Booking:
      def __init__(self, name=None, date=None, time=None):
          self.name = name
          self.date = date
          self.time = time
  
      def create_booking(self, name, date, time):
          self.name = name
          self.date = date
          self.time = time
  
      def view_booking(self):
          return {"name": self.name, "date": self.date, "time": self.time}
  
      def edit_booking(self, name=None, date=None, time=None):
          if name:
              self.name = name
          if date:
              self.date = date
          if time:
              self.time = time
  
      def cancel_booking(self):
          self.name = None
          self.date = None
          self.time = None
  
  # Test the functionality
  booking1 = Booking()
  booking1.create_booking("John Doe", "2023-10-12", "14:00")
  assert booking1.name == "John Doe"
  assert booking1.date == "2023-10-12"
  assert booking1.time == "14:00"
  
  booking1.edit_booking(name="Jane Doe", date="2023-10-15", time="16:00")
  assert booking1.name == "Jane Doe"
  assert booking1.date == "2023-10-15"
  assert booking1.time == "16:00"
  
  booking1.cancel_booking()
  assert booking1.name is None
  assert booking1.date is None
  assert booking1.time is None