code: def write_wheelfile(self, *args, **kwargs):
      bdist_wheel.write_wheelfile(self, *args, **kwargs)
      bin_dir = os.path.join(
          self.bdist_dir,
          self.data_dir,
          "purelib",
          "fiftyone",
          "db",
          "bin",
      )
      if not os.path.isdir(bin_dir):
          os.mkdir(bin_dir)
  
      mongo_zip_url = _get_download()
      if mongo_zip_url is None:
          return
  
      mongo_zip_filename = os.path.basename(mongo_zip_url)
  
      mongo_zip_dest = os.path.join(
          os.path.dirname(os.path.abspath(__file__)),
          mongo_zip_filename,
      )
  
      try:
          if not os.path.exists(mongo_zip_dest):
              with urlopen(mongo_zip_url) as conn, open(
                  mongo_zip_dest, "wb"
              ) as dest:
                  shutil.copyfileobj(conn, dest)
  
      except:
          exc_dest = os.path.join(
              bin_dir,
              "exception.txt",
          )
          with open(exc_dest, "w", encoding="utf-8") as f:
              f.write(traceback.format_exc())
          return
  
      if mongo_zip_dest.endswith(".zip"):
          # Windows
          mongo_zip = zipfile.ZipFile(mongo_zip_dest)
          for filename in MONGODB_BINARIES:
              filename = filename + ".exe"
              try:
                  zip_entry = next(
                      entry
                      for entry in mongo_zip.filelist
                      if entry.filename.endswith("bin/" + filename)
                  )
              except StopIteration:
                  raise IOError(
                      "Could not find %r in MongoDB archive" % filename
                  )
              # strip the leading directories (zipfile doesn't have an
              # equivalent of tarfile.extractfile to support this)
              zip_entry.filename = os.path.basename(zip_entry.filename)
              mongo_zip.extract(zip_entry, bin_dir)
      else:
          # assume tar
          mongo_tar = tarfile.open(mongo_zip_dest)
          for filename in MONGODB_BINARIES:
              try:
                  tar_entry_name = next(
                      name
                      for name in mongo_tar.getnames()
                      if name.endswith("bin/" + filename)
                  )
              except StopIteration:
                  raise IOError(
                      "Could not find %r in MongoDB archive" % filename
                  )
  
              tar_entry = mongo_tar.getmember(tar_entry_name)
              dest_path = os.path.join(bin_dir, filename)
              with mongo_tar.extractfile(tar_entry) as src, open(
                  dest_path, "wb"
              ) as dest:
                  shutil.copyfileobj(src, dest)
              os.chmod(dest_path, tar_entry.mode)
  
file_path: fiftyone/package/db/setup.py
imports: import csv
  import os
  import pathlib
  import platform
  import shutil
  import tarfile
  import traceback
  import zipfile
  from setuptools import setup
  from urllib.request import urlopen
  from wheel.bdist_wheel import bdist_wheel
label_desc: Use image node_id 3 for calling the CustomBdistWheel obj's underlying member method code with example usage: obj.write_wheelfile() without return types