code: def safe_load(string):
      
      try:
          return yaml.safe_load(string) or {}
      except yaml.scanner.ScannerError as e:
          sysexit_with_message(str(e))
docs: Parse the provided string returns a dict.
  
      :param string: A string to be parsed.
      :return: dict