code: def make_ecommerce_entityset(with_integer_time_index=False):
      """Makes a entityset with the following shape:
  
        R         Régions
       / \\       .
      S   C       Stores, Customers
          |       .
          S   P   Sessions, Products
           \\ /   .
            L     Log
      """
      dataframes = make_ecommerce_dataframes(
          with_integer_time_index=with_integer_time_index,
      )
      dataframe_names = dataframes.keys()
      es_id = "ecommerce"
      if with_integer_time_index:
          es_id += "_int_time_index"
  
      logical_types = make_logical_types(
          with_integer_time_index=with_integer_time_index
      )
      semantic_tags = make_semantic_tags()
      time_indexes = make_time_indexes(
          with_integer_time_index=with_integer_time_index
      )
  
      es = EntitySet(id=es_id)
  
      for df_name in dataframe_names:
          time_index = time_indexes.get(df_name, None)
          ti_name = None
          secondary = None
          if time_index is not None:
              ti_name = time_index["name"]
              secondary = time_index["secondary"]
          df = dataframes[df_name]
          es.add_dataframe(
              df,
              dataframe_name=df_name,
              index="id",
              logical_types=logical_types[df_name],
              semantic_tags=semantic_tags[df_name],
              time_index=ti_name,
              secondary_time_index=secondary,
          )
  
      es.normalize_dataframe(
          "customers",
          "cohorts",
          "cohort",
          additional_columns=["cohort_name"],
          make_time_index=True,
          new_dataframe_time_index="cohort_end",
      )
  
      es.add_relationships(
          [
              ("régions", "id", "customers", "région_id"),
              ("régions", "id", "stores", "région_id"),
              ("customers", "id", "sessions", "customer_id"),
              ("sessions", "id", "log", "session_id"),
              ("products", "id", "log", "product_id"),
          ],
      )
  
      return es
  
file_path: featuretools/featuretools/tests/testing_utils/mock_ds.py
imports: from datetime import datetime
  import numpy
  import pandas
  from woodwork.logical_types import URL, Boolean, Categorical, CountryCode, Datetime, Double, EmailAddress, Filepath, Integer, IPAddress, LatLong, NaturalLanguage, Ordinal, PersonFullName, PhoneNumber, PostalCode, SubRegionCode
  from featuretools.entityset import EntitySet
label_desc: Use image node_id 1 for calling a global function with example usage: make_ecommerce_entityset(with_integer_time_index) and returns: es