code: def _validate(configs):
      """Validate inputs from users."""
      if "device" in configs:
          for v in configs["device"]:
              assert (
                  v in _supported_devices
              ), "Device needs to be a string."
  
imports: import argparse
  import bisect
  import itertools
  import os
  import random
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: _validate(configs) without return types