code: def make_es(data):
      es = ft.EntitySet("Flight Data")
      arr_time_columns = [
          "arr_delay",
          "dep_delay",
          "carrier_delay",
          "weather_delay",
          "national_airspace_delay",
          "security_delay",
          "late_aircraft_delay",
          "canceled",
          "diverted",
          "taxi_in",
          "taxi_out",
          "air_time",
          "dep_time",
      ]
  
      logical_types = {
          "flight_num": Categorical,
          "distance_group": Ordinal(
              order=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
          ),
          "canceled": Boolean,
          "diverted": Boolean,
      }
  
      es.add_dataframe(
          data,
          dataframe_name="trip_logs",
          index="trip_log_id",
          make_index=True,
          time_index="date_scheduled",
          secondary_time_index={"arr_time": arr_time_columns},
          logical_types=logical_types,
      )
  
      es.normalize_dataframe(
          "trip_logs",
          "flights",
          "flight_id",
          additional_columns=[
              "origin",
              "origin_city",
              "origin_state",
              "dest",
              "dest_city",
              "dest_state",
              "distance_group",
              "carrier",
              "flight_num",
          ],
      )
  
      es.normalize_dataframe(
          "flights", "airlines", "carrier", make_time_index=False
      )
  
      es.normalize_dataframe(
          "flights",
          "airports",
          "dest",
          additional_columns=["dest_city", "dest_state"],
          make_time_index=False,
      )
      return es
  
file_path: featuretools/featuretools/demo/flight.py
imports: import math
  import re
  import pandas
  from tqdm import tqdm
  from woodwork.logical_types import Boolean, Categorical, Ordinal
  import featuretools
label_desc: Use image node_id 2 for calling a global function with example usage: make_es(data) and returns: es