code: def get_frontend_by_name(name: str):
      """
      This function will try to get a frontend instance, based
      on the name provided.
  
      Parameters
      ----------
      name : str
          the name of a given frontend
  
      Returns
      -------
      frontend : tvm.driver.tvmc.Frontend
          An instance of the frontend that matches with
          the file extension provided in `path`.
  
      """
  
      for frontend in ALL_FRONTENDS:
          if name == frontend.name():
              return frontend()
  
      raise TVMCException(
          "unrecognized frontend '{0}'. Choose from: {1}".format(
              name, get_frontend_names()
          )
      )
  
imports: import logging
  import os
  import sys
  import re
  import importlib
  from abc import ABC
  from abc import abstractmethod
  from typing import Optional, List, Dict
  from pathlib import Path
  import numpy
  from tvm import relay
  from tvm import parser
  from tvm.driver.tvmc import TVMCException, TVMCImportError
  from tvm.driver.tvmc.model import TVMCModel
label_desc: Use image node_id 3 for calling a global function with example usage: get_frontend_by_name(name) and returns: frontend