code: def get_converter(input_type, name, sample_dim, element_type):
      if input_type.lower() == "dense":
          return DenseConverter(name, sample_dim, element_type)
      if input_type.lower() == "sparse":
          return SparseConverter(name, sample_dim, element_type)
  
      raise ValueError("Invalid input format {0}".format(input_type))
  
imports: import sys
  import argparse
  import struct
  import os
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling a global function with example usage: get_converter(input_type, name, sample_dim, element_type) and returns: DenseConverter, SparseConverter