code: def buildFileList(examples, files=None):
      if files is None:
          files = []
      for key, val in examples.items():
          if isinstance(val, dict):
              buildFileList(val, files)
          elif isinstance(val, Namespace):
              files.append((key, val.filename))
          else:
              files.append((key, val))
      return files
  
file_path: pyqtgraph/pyqtgraph/examples/test_examples.py
imports: import contextlib
  import errno
  import importlib
  import itertools
  import os
  import platform
  import subprocess
  import sys
  import time
  from argparse import Namespace
  from collections import namedtuple
  import pytest
  from pyqtgraph import Qt
  from .None import utils
label_desc: Use image node_id 1 for calling a global function with example usage: buildFileList(examples, files) and returns: files