def METHOD_NAME(path, json_data):
  def HasElement(e):
    if json_data.get(e) is None:
      self.fail('%s: is missing "%s"' % (path, e))
  HasElement('description')
  HasElement('releaseVersion')
  language = json_data.get('language')
  for r in json_data.get('requires', []):
    def HasRequiresElement(d, e):
      if d.get(e) is None:
        self.fail('%s: "requires" item is missing "%s"' % (path, e))
    HasRequiresElement(r, 'name')
    HasRequiresElement(r, 'version')
    HasRequiresElement(r, 'environments')
    environments = r['environments']