code: def get_span_list():
      """Read span files and return list of span names."""
      span_list = []
      for entry in glob.glob(f"{spans_dir}/**/*.txt", recursive=True):
          with open(entry) as f:
              for line in f.readlines():
                  span_list.append(json.loads(line))
      return span_list
  
imports: import asyncio
  import glob
  import json
  import os
  import pytest
  import shutil
  from unittest.mock import patch
  import ray
  from ray._private.test_utils import check_call_ray
  from ray.util.tracing.setup_local_tmp_tracing import spans_dir
label_desc: Use image node_id 5 for calling a global function with example usage: get_span_list() and returns: span_list