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 hidden directories from the model archive .mar file
  :param directory:
  :param unwanted_dirs:
  :return:
docstr_tok: ["This","method","weeds","out","unwanted","hidden","directories","from","the","model","archive",".mar","file",":","param","directory",":",":","param","unwanted_dirs",":",":","return",":"]
code: def directory_filter(directory, unwanted_dirs):
      """
      This method weeds out unwanted hidden directories from the model archive .mar file
      :param directory:
      :param unwanted_dirs:
      :return:
      """
      if directory in unwanted_dirs:
          return False
      if directory.startswith("."):
          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 11 for calling the ModelExportUtils obj's underlying member method code with example usage: obj.directory_filter(directory, unwanted_dirs) and returns: True, False, False