nodes: 0, module; 1, function_definition; 2, function_name:norm_int_dict; 3, parameters; 4, block; 5, identifier:int_dict; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, for_statement; 10, return_statement; 11, comment:"""Normalizes values in the given dict with int values.
  
      Parameters
      ----------
      int_dict : list
          A dict object mapping each key to an int value.
  
      Returns
      -------
      dict
          A dict where each key is mapped to its relative part in the sum of
          all dict values.
  
      Example
      -------
      >>> dict_obj = {'a': 3, 'b': 5, 'c': 2}
      >>> result = norm_int_dict(dict_obj)
      >>> print(sorted(result.items()))
      [('a', 0.3), ('b', 0.5), ('c', 0.2)]
      """; 12, assignment; 13, assignment; 14, identifier:key; 15, identifier:norm_dict; 16, block; 17, identifier:norm_dict; 18, identifier:norm_dict; 19, call; 20, identifier:val_sum; 21, call; 22, expression_statement; 23, attribute; 24, argument_list; 25, identifier:sum; 26, argument_list; 27, assignment; 28, identifier:int_dict; 29, identifier:copy; 30, call; 31, subscript; 32, binary_operator:norm_dict[key] / val_sum; 33, attribute; 34, argument_list; 35, identifier:norm_dict; 36, identifier:key; 37, subscript; 38, identifier:val_sum; 39, identifier:norm_dict; 40, identifier:values; 41, identifier:norm_dict; 42, identifier:key
code: def norm_int_dict(int_dict):
      """Normalizes values in the given dict with int values.
  
      Parameters
      ----------
      int_dict : list
          A dict object mapping each key to an int value.
  
      Returns
      -------
      dict
          A dict where each key is mapped to its relative part in the sum of
          all dict values.
  
      Example
      -------
      >>> dict_obj = {'a': 3, 'b': 5, 'c': 2}
      >>> result = norm_int_dict(dict_obj)
      >>> print(sorted(result.items()))
      [('a', 0.3), ('b', 0.5), ('c', 0.2)]
      """
      norm_dict = int_dict.copy()
      val_sum = sum(norm_dict.values())
      for key in norm_dict:
          norm_dict[key] = norm_dict[key] / val_sum
      return norm_dict