code: def split_params_by_commuting_structure(params, commuting_structure):
      """Splits params by commuting_structure.
  
      Args:
        params: A structure to be split. This should be the value returned by the
          `get_params` method of the `Encoder`.
        commuting_structure: A structure describing the part of `Encoder` that
          commutes with sum. This should be value returned by the
          `commuting_structure` property of `Encoder`.
  
      Returns:
        A tuple `(before_sum_params, after_sum_params)`, where both values have the
        same structure as `params`, with fields not relevant before/after summation
        replaced by `None`.
      """
      return _split_value_by_commuting_structure(
          params, EncoderKeys.PARAMS, commuting_structure
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import six
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.core import encoding_stage
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.utils import py_utils
label_desc: Use image node_id 1 for calling a global function with example usage: split_params_by_commuting_structure(params, commuting_structure) and returns: _split_value_by_commuting_structure