code: def _remap_keys(old_dict, rename_fn):
      """
      Rename keys of 'old_dict' according to 'rename_fn'.
  
      Args:
          old_dict: Dictionary (i.e. containing blob_name -> blob_name
              relationships.)
          remap_fn: Function string -> string for renaming.
  
      Returns:
          None. Modifies old_dict in-place.
      """
      new_dict = {
          rename_fn(key): value for key, value in old_dict.items()
      }
      old_dict.clear()
      old_dict.update(new_dict)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import copy
  import logging
  import os
  import re
  from builtins import bytes
  from caffe2.proto import caffe2_pb2
  from caffe2.python import core, workspace
  from .proto.graph_pb2 import GraphDef
  from .proto.node_def_pb2 import NodeDef
  from .proto.tensor_shape_pb2 import TensorShapeProto
label_desc: Use image node_id 5 for calling a global function with example usage: _remap_keys(old_dict, rename_fn) without return types