code: def sanitize_path_array(paths: List[str]) -> List[str]:
      """
      Expands supplied paths and removes empty or non-file entries.
      :param paths: A list of paths
      :return: A sanitized list of paths
      :raises FileNotFoundError if a file does not exist
      """
      expanded_paths = list(
          chain.from_iterable(
              glob.glob(path.strip())
              for path in paths
              if path.strip() != ""
          )
      )
      return [
          path.strip()
          for path in expanded_paths
          if path.strip() != "" and is_file(path)
      ]
  
imports: import argparse
  import ctypes
  import glob
  import logging
  import os
  import re
  import sys
  from itertools import chain
  from subprocess import CalledProcessError, check_output
  from typing import Dict, List, Optional
  import boto3
  import botocore.exceptions
  import yaml
label_desc: Use image node_id 21 for calling a global function with example usage: sanitize_path_array(paths) and returns: unknown