input: Write a function to parse a JSON data structure and return the name, age, and occupation. If the JSON data structure is invalid, return None.
  def parse_json(data):
      try:
          parsed_data = json.loads(data)
          return parsed_data['name'], parsed_data['age'], parsed_data['occupation']
      except (json.JSONDecodeError, KeyError):
          return None
          
  assert parse_json('{"name": "John", "age": 18, "occupation": "Software Engineer"}') == ("John", 18, "Software Engineer")
  assert parse_json('{"name": "Alice", "age": 25, "occupation": "Data Scientist"}') == ("Alice", 25, "Data Scientist")
  assert parse_json('{"name": "Bob"}') == None
  assert parse_json('invalid json') == None
  assert parse_json('{}') == None
output: def parse_json(data):
      try:
          parsed_data = json.loads(data)
          return parsed_data['name'], parsed_data['age'], parsed_data['occupation']
      except (json.JSONDecodeError, KeyError):
          return None