code: def entityset_to_description(entityset, format=None):
      """Serialize entityset to data description.
  
      Args:
          entityset (EntitySet) : Instance of :class:`.EntitySet`.
  
      Returns:
          description (dict) : Description of :class:`.EntitySet`.
      """
  
      dataframes = {
          dataframe.ww.name: typing_info_to_dict(dataframe)
          for dataframe in entityset.dataframes
      }
      relationships = [
          relationship.to_dictionary()
          for relationship in entityset.relationships
      ]
  
      data_type = entityset.dataframe_type
  
      data_description = {
          "schema_version": ENTITYSET_SCHEMA_VERSION,
          "id": entityset.id,
          "dataframes": dataframes,
          "relationships": relationships,
          "format": format,
          "data_type": data_type,
      }
      return data_description
  
file_path: featuretools/featuretools/entityset/serialize.py
imports: import datetime
  import json
  import os
  import tarfile
  import tempfile
  from woodwork.serializers.serializer_base import typing_info_to_dict
  from featuretools.utils.gen_utils import import_or_none
  from featuretools.utils.s3_utils import get_transport_params, use_smartopen_es
  from featuretools.utils.wrangle import _is_s3, _is_url
  from featuretools.version import ENTITYSET_SCHEMA_VERSION
label_desc: Use image node_id 1 for calling a global function with example usage: entityset_to_description(entityset, format) and returns: data_description