code: def _problem_name_validator(k, v):
      del v
      if parse_problem_name(k).base_name != k:
          raise KeyError(
              "Invalid problem name: cannot end in %s or %s"
              % ("_rev", "_copy")
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from tensor2tensor.utils import misc_utils
  import tensorflow.compat.v1
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 6 for calling a global function with example usage: _problem_name_validator(k, v) without return types