code: def make_model_gen_version(
      graph: GraphProto, **kwargs: Any
  ) -> ModelProto:
      ir_version_field = "ir_version"
      if ir_version_field not in kwargs:
          opset_imports_field = "opset_imports"
          imports = (
              kwargs[opset_imports_field]
              if opset_imports_field in kwargs
              else []
          )
          kwargs[ir_version_field] = find_min_ir_version_for(imports)
      return make_model(graph, **kwargs)
  
imports: import collections.abc
  import numbers
  import struct
  from cmath import isnan
  from typing import Any, Callable, Dict, KeysView, List, Optional, Sequence, Tuple, TypeVar, Union, cast
  import google.protobuf.message
  import numpy
  from onnx import IR_VERSION, AttributeProto, FunctionProto, GraphProto, MapProto, ModelProto, NodeProto, OperatorSetIdProto, OptionalProto, SequenceProto, SparseTensorProto, TensorProto, TensorShapeProto, TrainingInfoProto, TypeProto, ValueInfoProto, defs, mapping
label_desc: Use image node_id 9 for calling a global function with example usage: make_model_gen_version(graph) and returns: make_model