code: def build_dist(readme, python_exe, sudo):
      print("Building distribution... (using sudo)")
      cmd = f"{python_exe} setup_egg.py bdist_mpkg --readme={readme}"
      if sudo:
          cmd = f"sudo {cmd}"
      shellcmd(cmd)
  
file_path: dipy/tools/osxbuild.py
imports: import os
  import sys
  import shutil
  import subprocess
  from optparse import OptionParser
  from getpass import getuser
label_desc: Use image node_id 2 for calling a global function with example usage: build_dist(readme, python_exe, sudo) without return types