code: def validate_and_clean_jobs(jobs):
      if not isinstance(jobs, list):
          raise ValidationError("jobs is not list")
      for i, job in enumerate(jobs):
          handle_deprecated_job_keys(i, job)
          job_validator.validate(f"jobs[{i}]", job)
          handle_job_backwards_compatibility(job)
  
imports: from hailtop.batch_client.parse import CPU_REGEX, CPU_REGEXPAT, MEMORY_REGEX, MEMORY_REGEXPAT, STORAGE_REGEX, STORAGE_REGEXPAT
  from hailtop.utils.validate import ValidationError, anyof, bool_type, dictof, int_type, keyed, listof, non_empty_str_type, nullable, numeric, oneof, regex, required, str_type, switch
  from ..globals import memory_types
label_desc: Use image node_id 1 for calling a global function with example usage: validate_and_clean_jobs(jobs) without return types