code: def problem(problem_name, **kwargs):
      """Get possibly copied/reversed problem in `base_registry` or `env_registry`.
  
      Args:
        problem_name: string problem name. See `parse_problem_name`.
        **kwargs: forwarded to env problem's initialize method.
  
      Returns:
        possibly reversed/copied version of base problem registered in the given
        registry.
      """
      spec = parse_problem_name(problem_name)
      try:
          return Registries.problems[spec.base_name](
              was_copy=spec.was_copy, was_reversed=spec.was_reversed
          )
      except KeyError:
          # If name is not found in base problems then try creating an env problem
          return env_problem(problem_name, **kwargs)
  
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 12 for calling a global function with example usage: problem(problem_name) and returns: Registries, env_problem