code: def parse_compound(compound_def, context=None):
      
  
      compound_id = compound_def.get('id')
      _check_id(compound_id, 'Compound')
  
      mark = FileMark(context, None, None)
      return CompoundEntry(compound_def, mark)
docs: Parse a structured compound definition as obtained from a YAML file
  
      Returns a CompoundEntry.