docstr: Make sure arguments can be passed correctly.
docstr_tok: ["Make","sure","arguments","can","be","passed","correctly","."]
code: def testBasicCost(self):
      """Make sure arguments can be passed correctly."""
      a = constant_op.constant(10, name="a")
      b = constant_op.constant(20, name="b")
      c = math_ops.add_n([a, b], name="c")
      d = math_ops.add_n([b, c], name="d")
      train_op = ops.get_collection_ref(ops.GraphKeys.TRAIN_OP)
      train_op.append(d)
      mg = meta_graph.create_meta_graph_def(
          graph=ops.get_default_graph()
      )
  
      report = cost_analyzer.GenerateCostReport(
          mg, per_node_report=True
      )
  
      # Check the report headers
      self.assertTrue(
          b"Total time measured in ns (serialized):" in report
      )
      self.assertTrue(b"Total time measured in ns (actual):" in report)
      self.assertTrue(
          b"Total time analytical in ns (upper bound):" in report
      )
      self.assertTrue(
          b"Total time analytical in ns (lower bound):" in report
      )
      self.assertTrue(
          b"Overall efficiency (analytical upper/actual):" in report
      )
      self.assertTrue(
          b"Overall efficiency (analytical lower/actual):" in report
      )
      self.assertTrue(
          b"Below is the per-node report summary:" in report
      )
  
      # Also print the report to make it easier to debug
      print("{}".format(report))
  
imports: import re
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.grappler import cost_analyzer
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_grad
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import adam
label_desc: Use image node_id 1 for calling the CostAnalysisTest obj's underlying member method code with example usage: obj.testBasicCost() without return types