class_docstr: Helper utils for Model Archiver tool.
  This class lists out all the methods such as validations for model archiving.
code: def generate_model(modelcfg: ModelArchiverConfig):
      model = Model(
          model_name=modelcfg.model_name,
          serialized_file=modelcfg.serialized_file,
          model_file=modelcfg.model_file,
          handler=modelcfg.handler,
          model_version=modelcfg.version,
          requirements_file=modelcfg.requirements_file,
          config_file=modelcfg.config_file,
      )
      return model
  
imports: import glob
  import logging
  import os
  import re
  import shutil
  import tarfile
  import tempfile
  import zipfile
  from io import BytesIO
  from pathlib import Path
  from .manifest_components.manifest import Manifest
  from .manifest_components.model import Model
  from .model_archiver_config import ModelArchiverConfig
  from .model_archiver_error import ModelArchiverError
label_desc: Use image node_id 4 for calling the ModelExportUtils obj's underlying member method code with example usage: obj.generate_model(modelcfg) and returns: model