code: def _distribute_bento(
      spark: pyspark.sql.session.SparkSession, bento: Bento
  ) -> str:
      temp_dir = tempfile.mkdtemp()
      export_path = bento.export(temp_dir)
      spark.sparkContext.addFile(export_path)
      return os.path.basename(export_path)
  
file_path: BentoML/grpc-client/bentoml/_internal/batch/spark.py
imports: from __future__ import annotations
  import logging
  import os.path
  import tempfile
  import typing
  from typing import TYPE_CHECKING
  from bentoml._internal.utils import reserve_free_port
  from ...bentos import import_bento
  from ...bentos import serve
  from ...client import Client
  from ...client import HTTPClient
  from ...exceptions import BentoMLException
  from ...exceptions import MissingDependencyException
  from ..bento import Bento
  from ..service.loader import load_bento
  from ..tag import Tag
label_desc: Use image node_id 1 for calling a global function with example usage: _distribute_bento(spark, bento) and returns: os