code: def get_boolean_attribute_value(attrs, attr_name):
      """Helper function to convert a string version
      of Boolean attributes to integer for ONNX.
      Takes attribute dictionary and attr_name as
      parameters.
      """
      return 1 if attrs.get(attr_name, 0) in ["True", "1"] else 0
  
imports: import re
  import logging
  import numpy
  from .._export_onnx import MXNetGraph
label_desc: Use image node_id 4 for calling a global function with example usage: get_boolean_attribute_value(attrs, attr_name) and returns: unknown