input: def handle_errors_in_reading_json(filename):
      """
      Handles reading data from a JSON file and catches specific errors if they occur.
      If the file does not exist, it prints "The file specified does not exist."
      If the file is not in a valid JSON format, it prints "The file specified is not in a valid JSON format."
      >>> handle_errors_in_reading_json('existing_file.json')
      # returns the data from the file if valid
      >>> handle_errors_in_reading_json('nonexistent_file.json')
      The file specified does not exist.
      >>> handle_errors_in_reading_json('invalid_json_file.json')
      The file specified is not in a valid JSON format.
      """
      try:
          with open(filename, 'r') as f:
              data = json.load(f)
          return data
      except FileNotFoundError:
          print("The file specified does not exist.")
      except json.decoder.JSONDecodeError:
          print("The file specified is not in a valid JSON format.")
output:     except FileNotFoundError:
          print("The file specified does not exist.")
      except json.decoder.JSONDecodeError:
          print("The file specified is not in a valid JSON format.")