code: def _SetDefaultAttrValues(node_def, op_def):
      """Set any default attr values in `node_def` that aren't present."""
      assert node_def.op == op_def.name
      for attr_def in op_def.attr:
          key = attr_def.name
          if attr_def.HasField("default_value"):
              value = node_def.attr[key]
              if value is None or value.WhichOneof("value") is None:
                  node_def.attr[key].CopyFrom(attr_def.default_value)
  
imports: import contextlib
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python import tf2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.framework import c_api_util
  from tensorflow.python.framework import device
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import function
  from tensorflow.python.framework import op_def_registry
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.util import compat
  from tensorflow.python.util.deprecation import deprecated_args
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 14 for calling a global function with example usage: _SetDefaultAttrValues(node_def, op_def) without return types