docstr: export the group dependency to a csv file.
  Each line describes a convolution layer, the
  first part of each line is the Pytorch module
  name of the conv layer. The second part of each
  line is the group count of the filters in this layer.
  Note that, the group count may be larger than this
  layers original group number.
  
  output example:
  Conv layer, Groups
  Conv1, 1
  Conv2, 2
  Conv3, 4
docstr_tok: ["export","the","group","dependency","to","a","csv","file",".","Each","line","describes","a","convolution","layer",",","the","first","part","of","each","line","is","the","Pytorch","module","name","of","the","conv","layer",".","The","second","part","of","each","line","is","the","group","count","of","the","filters","in","this","layer",".","Note","that",",","the","group","count","may","be","larger","than","this","layers","original","group","number",".","output","example",":","Conv","layer",",","Groups","Conv1",",","1","Conv2",",","2","Conv3",",","4"]
code: def export(self, filepath):
      """
      export the group dependency to a csv file.
      Each line describes a convolution layer, the
      first part of each line is the Pytorch module
      name of the conv layer. The second part of each
      line is the group count of the filters in this layer.
      Note that, the group count may be larger than this
      layers original group number.
  
      output example:
      Conv layer, Groups
      Conv1, 1
      Conv2, 2
      Conv3, 4
      """
      header = ["Conv Layer Name", "Group"]
      with open(filepath, "w") as csvf:
          csv_w = csv.writer(csvf, delimiter=",")
          csv_w.writerow(header)
          for name in self.dependency:
              group = self.dependency[name]
              csv_w.writerow([name, group])
  
imports: import csv
  import logging
label_desc: Use image node_id 5 for calling the GroupDependency obj's underlying member method code with example usage: obj.export(filepath) without return types