code: def _register_function_ops(func_list):
      """Registers custom ops in the default graph. This is needed
      Because our checkpoint is saved with ops that are not part of Tensorflow.
      """
      op_dict = op_def_registry.get_registered_ops()
      for func in func_list:
          # pylint: disable=W0212
          func._create_definition_if_needed()
          op_def = func._definition.signature
          op_dict[op_def.name] = op_def
          RegisterShape(op_def.name)(common_shapes.unknown_shape)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import six
  from google.protobuf import text_format
  import tensorflow
  from tensorflow.contrib.tfprof import model_analyzer
  from tensorflow.contrib.tfprof.python.tools.tfprof import tfprof_logger
  from tensorflow import gfile
  from tensorflow.tools.tfprof import tfprof_log_pb2
  from tensorflow.python.framework import op_def_registry
  from tensorflow.python.framework.ops import RegisterShape
  from tensorflow.python.framework import common_shapes
  from seq2seq.decoders.attention import att_sum_bahdanau, att_sum_dot
label_desc: Use image node_id 1 for calling a global function with example usage: _register_function_ops(func_list) without return types