code: def check_configs(self):
      # we checked the dimensions in set_derived_configs.
      if not self.config["bypass-source"] in [
          "input",
          "noop",
          "relu",
          "batchnorm",
      ]:
          raise RuntimeError(
              "Expected direct-convolution-source to "
              "be input, relu or batchnorm, got: {1}".format(
                  self.config["direct-convolution-source"]
              )
          )
  
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 XconfigResBlock obj's underlying member method code with example usage: obj.check_configs() without return types