code: def get_num_uploads():
      manager = serialization.get_or_create_manager()
      stats = ray.get(manager.export_stats.remote())
      return stats.get("num_uploads", 0)
  
file_path: ray/python/ray/workflow/tests/test_serialization2.py
imports: import subprocess
  import time
  import pytest
  from filelock import FileLock
  import ray
  from ray import workflow
  from ray._private.test_utils import run_string_as_driver_nonblocking
  from ray.tests.conftest import *
  from ray.workflow import serialization, workflow_storage
label_desc: Use image node_id 1 for calling a global function with example usage: get_num_uploads() and returns: stats