code: def test_query_cost_formatter(self):
      raw_cost = [
          {
              "inputTableColumnInfos": [
                  {
                      "table": {
                          "catalog": "hive",
                          "schemaTable": {
                              "schema": "default",
                              "table": "fact_passenger_state",
                          },
                      },
                      "columnConstraints": [
                          {
                              "columnName": "ds",
                              "typeSignature": "varchar",
                              "domain": {
                                  "nullsAllowed": False,
                                  "ranges": [
                                      {
                                          "low": {
                                              "value": "2019-07-10",
                                              "bound": "EXACTLY",
                                          },
                                          "high": {
                                              "value": "2019-07-10",
                                              "bound": "EXACTLY",
                                          },
                                      }
                                  ],
                              },
                          }
                      ],
                      "estimate": {
                          "outputRowCount": 9.04969899e8,
                          "outputSizeInBytes": 3.54143678301e11,
                          "cpuCost": 3.54143678301e11,
                          "maxMemory": 0.0,
                          "networkCost": 0.0,
                      },
                  }
              ],
              "estimate": {
                  "outputRowCount": 9.04969899e8,
                  "outputSizeInBytes": 3.54143678301e11,
                  "cpuCost": 3.54143678301e11,
                  "maxMemory": 0.0,
                  "networkCost": 3.54143678301e11,
              },
          }
      ]
      formatted_cost = PrestoEngineSpec.query_cost_formatter(raw_cost)
      expected = [
          {
              "Output count": "904 M rows",
              "Output size": "354 GB",
              "CPU cost": "354 G",
              "Max memory": "0 B",
              "Network cost": "354 G",
          }
      ]
      self.assertEqual(formatted_cost, expected)
  
imports: from collections import namedtuple
  from textwrap import dedent
  from unittest import mock, skipUnless
  import pandas
  from flask.ctx import AppContext
  from sqlalchemy import types
  from sqlalchemy.sql import select
  from superset.db_engine_specs.presto import PrestoEngineSpec
  from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
  from superset.sql_parse import ParsedQuery
  from superset.utils.database import get_example_database
  from tests.integration_tests.db_engine_specs.base_tests import TestDbEngineSpec
label_desc: Use image node_id 19 for calling the TestPrestoDbEngineSpec obj's underlying member method code with example usage: obj.test_query_cost_formatter() without return types