class_docstr: Helper utils for Model Archiver tool.
  This class lists out all the methods such as validations for model archiving.
docstr: Function to check if .mar already exists
  :param archive_format:
  :param model_name:
  :param export_file_path:
  :param overwrite:
  :return:
docstr_tok: ["Function","to","check","if",".mar","already","exists",":","param","archive_format",":",":","param","model_name",":",":","param","export_file_path",":",":","param","overwrite",":",":","return",":"]
code: def check_mar_already_exists(
      model_name, export_file_path, overwrite, archive_format="default"
  ):
      """
      Function to check if .mar already exists
      :param archive_format:
      :param model_name:
      :param export_file_path:
      :param overwrite:
      :return:
      """
      if export_file_path is None:
          export_file_path = os.getcwd()
  
      export_file = ModelExportUtils.get_archive_export_path(
          export_file_path, model_name, archive_format
      )
  
      if os.path.exists(export_file):
          if overwrite:
              logging.warning("Overwriting %s ...", export_file)
          else:
              raise ModelArchiverError(
                  "{0} already exists.\n"
                  "Please specify --force/-f option to overwrite the model archive "
                  "output file.\n"
                  "See -h/--help for more details.".format(export_file)
              )
  
      return export_file_path
  
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 2 for calling the ModelExportUtils obj's underlying member method code with example usage: obj.check_mar_already_exists(model_name, export_file_path, overwrite, archive_format) and returns: export_file_path