class_docstr: A helper class for handling relay functions from darknet model.
docstr: To parse and get the darknet params.
docstr_tok: ["To","parse","and","get","the","darknet","params","."]
code: def _get_darknet_params(self, layer, opname):
      """To parse and get the darknet params."""
      layer_type = LAYERTYPE(layer.type)
      params = None
      if LAYERTYPE.CONVOLUTIONAL == layer_type:
          params = self._get_convolution_weights(layer, opname)
      elif LAYERTYPE.CONNECTED == layer_type:
          params = self._get_connected_weights(layer, opname)
      elif LAYERTYPE.REGION == layer_type:
          params = self._get_region_weights(layer, opname)
      elif LAYERTYPE.YOLO == layer_type:
          params = self._get_yolo_weights(layer, opname)
      return params
  
imports: from enum import Enum
  import numpy
  import tvm
  from tvm.ir import IRModule
  from ..None import analysis
  from ..None import expr
  from ..None import function
  from .common import get_relay_op, new_var
label_desc: Use image node_id 9 for calling the GraphProto obj's underlying member method code with example usage: obj._get_darknet_params(layer, opname) and returns: params