class_docstr: Layer constructor function for a general convolution layer.
docstr: Helper to calculate the kernel shape.
docstr_tok: ["Helper","to","calculate","the","kernel","shape","."]
code: def _kernel_shape(self, input_shape):
      """Helper to calculate the kernel shape."""
      kernel_size_iter = iter(self._kernel_size)
      return [
          self._filters
          if c == "O"
          else input_shape[self._lhs_spec.index("C")]
          if c == "I"
          else next(kernel_size_iter)
          for c in self._rhs_spec
      ]
  
imports: import functools
  import itertools
  import operator
  from trax import fastmath
  from trax.fastmath import numpy
  from trax.layers import base
  from trax.layers import initializers
label_desc: Use image node_id 4 for calling the Conv obj's underlying member method code with example usage: obj._kernel_shape(input_shape) and returns: unknown