docstr: Get the number of groups for a convolutional layer.
  
  Parameters
  ----------
  node_group : NodePyGroup
      target node.
  
  Returns
  -------
  group : int
      the number of the groups of the target conv layer.
docstr_tok: ["Get","the","number","of","groups","for","a","convolutional","layer",".","Parameters","--","--","--","--","--","node_group",":","NodePyGroup","target","node",".","Returns","--","--","--","-","group",":","int","the","number","of","the","groups","of","the","target","conv","layer","."]
code: def _get_conv_groups(self, node_group):
      """
      Get the number of groups for a convolutional layer.
  
      Parameters
      ----------
      node_group : NodePyGroup
          target node.
  
      Returns
      -------
      group : int
          the number of the groups of the target conv layer.
      """
      cpp_conv = list(
          filter(lambda x: x.kind() == CONV_TYPE, node_group.node_cpps)
      )
      assert len(cpp_conv) == 1
      cpp_conv = cpp_conv[0]
      inputs = list(cpp_conv.inputs())
      # get the number of the group from the input parameters
      group = inputs[8].toIValue()
      return group
  
imports: import csv
  import logging
label_desc: Use image node_id 3 for calling the GroupDependency obj's underlying member method code with example usage: obj._get_conv_groups(node_group) and returns: group