code: def create_entity_type(project_id, display_name, kind):
      
      import dialogflow_v2 as dialogflow
      entity_types_client = dialogflow.EntityTypesClient()
  
      parent = entity_types_client.project_agent_path(project_id)
      entity_type = dialogflow.types.EntityType(
          display_name=display_name, kind=kind)
  
      response = entity_types_client.create_entity_type(parent, entity_type)
  
      print('Entity type created: \n{}'.format(response))
docs: Create an entity type with the given display name.