code: def list_knowledge_bases(project_id):
      
      import dialogflow_v2beta1 as dialogflow
      client = dialogflow.KnowledgeBasesClient()
      project_path = client.project_path(project_id)
  
      print('Knowledge Bases for: {}'.format(project_id))
      for knowledge_base in client.list_knowledge_bases(project_path):
          print(' - Display Name: {}'.format(knowledge_base.display_name))
          print(' - Knowledge ID: {}\n'.format(knowledge_base.name))
docs: Lists the Knowledge bases belonging to a project.
  
      Args:
          project_id: The GCP project linked with the agent.