code: def extract_bnns_modules(module):
      """Get the BNNS module(s) from llvm module."""
      return list(
          filter(
              lambda mod: mod.type_key == "bnns_json",
              module.get_lib().imported_modules,
          )
      )
  
imports: from itertools import zip_longest, combinations
  import json
  import os
  import warnings
  import numpy
  import tvm
  from tvm import relay
  from tvm import rpc
  from tvm.contrib import graph_executor
  from tvm.relay.op.contrib.bnns import partition_for_bnns
  from tvm.contrib import utils
  from tvm.autotvm.measure import request_remote
  from tvm.relay.analysis import analysis
label_desc: Use image node_id 6 for calling a global function with example usage: extract_bnns_modules(module) and returns: list