code: def check_configs(self):
      input_dim = self.descriptors["input"]["dim"]
      dim = self.config["dim"]
      if dim <= 0:
          raise RuntimeError("dim must be specified and > 0.")
      if input_dim % dim != 0:
          raise RuntimeError(
              "input-dim={0} is not a multiple of dim={1}".format(
                  input_dim, dim
              )
          )
  
imports: from __future__ import print_function
  from __future__ import division
  import math
  import re
  import sys
  from libs.nnet3.xconfig.basic_layers import XconfigLayerBase
label_desc: Use image node_id 4 for calling the ChannelAverageLayer obj's underlying member method code with example usage: obj.check_configs() without return types