class_docstr: Helper utils for Model Archiver tool.
  This class lists out all the methods such as validations for model archiving.
docstr: This method weeds out unwanted files
  :param current_file:
  :param files_to_exclude:
  :return:
docstr_tok: ["This","method","weeds","out","unwanted","files",":","param","current_file",":",":","param","files_to_exclude",":",":","return",":"]
code: def file_filter(current_file, files_to_exclude):
      """
      This method weeds out unwanted files
      :param current_file:
      :param files_to_exclude:
      :return:
      """
      files_to_exclude.add("MANIFEST.json")
      if current_file in files_to_exclude:
          return False
  
      elif current_file.endswith((".pyc", ".DS_Store", ".mar")):
          return False
  
      return True
  
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 12 for calling the ModelExportUtils obj's underlying member method code with example usage: obj.file_filter(current_file, files_to_exclude) and returns: True, False, False