code: def get_dict(self, filter_type: Optional[str] = None):
      return OrderedDict(
          (
              x["name"],
              {"type": x["type"], "engine": x["engine"], "id": x["id"]},
          )
          for x in self.get_list(filter_type=filter_type)
      )
  
file_path: mindsdb/mindsdb/interfaces/database/database.py
imports: from typing import Optional
  from collections import OrderedDict
  from mindsdb.interfaces.database.projects import ProjectController
  import mindsdb.utilities.profiler
  from mindsdb.utilities.exception import EntityNotExistsError
label_desc: Use image node_id 4 for calling the DatabaseController obj's underlying member method code with example usage: obj.get_dict(filter_type) and returns: OrderedDict