original_docstring: Serialize entityset to data description.
  
      Args:
          entityset (EntitySet) : Instance of :class:`.EntitySet`.
  
      Returns:
          description (dict) : Description of :class:`.EntitySet`.
      
docstring: Serialize entityset to data description.
docstring_tokens: Serialize entityset to data description .
code: def entityset_to_description(entityset):
      '''Serialize entityset to data description.
  
      Args:
          entityset (EntitySet) : Instance of :class:`.EntitySet`.
  
      Returns:
          description (dict) : Description of :class:`.EntitySet`.
      '''
      entities = {entity.id: entity_to_description(entity) for entity in entityset.entities}
      relationships = [relationship.to_dictionary() for relationship in entityset.relationships]
      data_description = {
          'schema_version': SCHEMA_VERSION,
          'id': entityset.id,
          'entities': entities,
          'relationships': relationships,
      }
      return data_description
code_tokens: def entityset_to_description ( entityset ) : entities = { entity . id : entity_to_description ( entity ) for entity in entityset . entities } relationships = [ relationship . to_dictionary ( ) for relationship in entityset . relationships ] data_description = { 'schema_version' : SCHEMA_VERSION , 'id' : entityset . id , 'entities' : entities , 'relationships' : relationships , } return data_description
short_docstring: Serialize entityset to data description.
short_docstring_tokens: Serialize entityset to data description .
comment: '''Serialize entityset to data description.
  
      Args:
          entityset (EntitySet) : Instance of :class:`.EntitySet`.
  
      Returns:
          description (dict) : Description of :class:`.EntitySet`.
      '''