code: def mount_share(share_path):
      
      sh_url = CFURLCreateWithString(None, share_path, None)
      # Set UI to reduced interaction
      open_options = {NetFS.kNAUIOptionKey: NetFS.kNAUIOptionNoUI}
      # Allow mounting sub-directories of root shares
      mount_options = {NetFS.kNetFSAllowSubMountsKey: True}
      # Build our connected pointers for our results
      result, output = NetFS.NetFSMountURLSync(sh_url, None, None, None,
                                               open_options, mount_options, None)
      # Check if it worked
      if result != 0:
          raise Exception('Error mounting url "%s": %s' % (share_path, output))
      # Return the mountpath
      return str(output[0])
docs: Mounts a share at /Volumes
  
      Args:
          share_path: String URL with all auth info to connect to file share.
  
      Returns:
          The mount point or raises an error.