code: def testWrongPatterns(self):
      self.assertEqual("foo_1:0", self._canonicalize("foo_1:0"))
      self.assertEqual("foo1", self._canonicalize("foo1"))
      self.assertEqual("foo_a", self._canonicalize("foo_a"))
  
file_path: tensorflow-upstream/tensorflow/python/distribute/shared_variable_creator_test.py
imports: from tensorflow.python.distribute import shared_variable_creator
  from tensorflow.python.eager import test
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variable_v1
label_desc: Use image node_id 5 for calling the CanonicalizeVariableNameTest obj's underlying member method code with example usage: obj.testWrongPatterns() without return types