class_docstr: Tests for tf_export class.
class_docstr_tok: ["Tests","for","tf_export","class","."]
code: def testExportSingleFunction(self):
      export_decorator = tf_export.tf_export("nameA", "nameB")
      decorated_function = export_decorator(self._test_function)
      self.assertEqual(decorated_function, self._test_function)
      self.assertEqual(
          ("nameA", "nameB"), decorated_function._tf_api_names
      )
      self.assertEqual(
          ["nameA", "nameB"], tf_export.get_v1_names(decorated_function)
      )
      self.assertEqual(
          ["nameA", "nameB"], tf_export.get_v2_names(decorated_function)
      )
      self.assertEqual(
          tf_export.get_symbol_from_name("nameA"), decorated_function
      )
      self.assertEqual(
          tf_export.get_symbol_from_name("nameB"), decorated_function
      )
      self.assertEqual(
          tf_export.get_symbol_from_name(
              tf_export.get_canonical_name_for_symbol(
                  decorated_function
              )
          ),
          decorated_function,
      )
  
file_path: tensorflow/tensorflow/python/util/tf_export_test.py
imports: import sys
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import tf_decorator
  from tensorflow.python.util import tf_export
label_desc: Use image node_id 4 for calling the ValidateExportTest obj's underlying member method code with example usage: obj.testExportSingleFunction() without return types