code: def first_filestream(ctx):
      """In xdist tests sometimes rogue file_streams make it to the server,
      we grab the first request with `files`"""
      return next(m for m in ctx["file_stream"] if m.get("files"))
  
file_path: wandb/tests/pytest_tests/unit_tests_old/utils/utils.py
imports: import io
  import os
  import shutil
  import socket
  from typing import Union
label_desc: Use image node_id 6 for calling a global function with example usage: first_filestream(ctx) and returns: next