code: def from_darknet(net, shape=None, dtype="float32"):
      """Convert from Darknet's model into compatible relay Function.
  
      Parameters
      ----------
      net : Darknet net parameter
          Darknet net structure.
      shape : dict of str to tuple, optional
          The input shape to the graph
      dtype : str or dict of str to str
          The input types to the graph
  
      Returns
      -------
      mod : tvm.IRModule
          The relay module for compilation.
  
      params : dict of str to tvm.nd.NDArray
          The parameter dict to be used by relay
      """
  
      return GraphProto(net, shape, dtype).from_darknet()
  
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 22 for calling a global function with example usage: from_darknet(net, shape, dtype) and returns: GraphProto