code: def expand_paths(
      fs: "FileSystem", paths: Iterable[str]
  ) -> Iterator[str]:
      for path in paths:
          if fs.isdir(path):
              yield from fs.find(path)
          else:
              yield path
  
imports: import hashlib
  import json
  import os
  import re
  import sys
  from typing import TYPE_CHECKING, Dict, Iterable, Iterator, List, Optional, Tuple
  import colorama
label_desc: Use image node_id 24 for calling a global function with example usage: expand_paths(fs, paths) without return types