code: def scale_values_in_dict(dictionary, multiplier, inplace=True):
      """Scale the values in a dictionary.
  
      For each element in the dictionary, applies `value * multiplier`.
  
      Parameters
      ----------
      dictionary
          Dictionary to scale.
      multiplier
          Scaling value.
      inplace
          If True, perform operation in-place
  
      """
  
      if not inplace:
          dictionary = copy.deepcopy(dictionary)
  
      for key, value in dictionary.items():
          dictionary[key] = value * multiplier
  
      return dictionary
  
imports: from __future__ import annotations
  import copy
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: scale_values_in_dict(dictionary, multiplier, inplace) and returns: dictionary