code: def add_prefix(inputs, prefix):
      """Add prefix for dict.
  
      Args:
          inputs (dict): The input dict with str keys.
          prefix (str): The prefix to add.
  
      Returns:
  
          dict: The dict with keys updated with ``prefix``.
      """
  
      outputs = dict()
      for name, value in inputs.items():
          outputs[f"{prefix}.{name}"] = value
  
      return outputs
  
imports: from collections import OrderedDict
  import torch
  import torch.nn
  import torch.nn.functional
  from .ops import resize
label_desc: Use image node_id 1 for calling a global function with example usage: add_prefix(inputs, prefix) and returns: outputs