class_docstr: Analyzer for profiling data.
code: def _get_total_cost(self, aggregated_profile, cost_type):
      if cost_type == "exec_time":
          return aggregated_profile.total_exec_time
      elif cost_type == "op_time":
          return aggregated_profile.total_op_time
      else:
          raise ValueError("Unsupported cost type: %s" % cost_type)
  
imports: import argparse
  import os
  import re
  import numpy
  from tensorflow.python.debug.cli import cli_shared
  from tensorflow.python.debug.cli import command_parser
  from tensorflow.python.debug.cli import debugger_cli_common
  from tensorflow.python.debug.cli import ui_factory
  from tensorflow.python.debug.lib import profiling
  from tensorflow.python.debug.lib import source_utils
label_desc: Use image node_id 7 for calling the ProfileAnalyzer obj's underlying member method code with example usage: obj._get_total_cost(aggregated_profile, cost_type) and returns: aggregated_profile, aggregated_profile