code: def parse_and_validate_py_modules(py_modules: List[str]) -> List[str]:
      """Parses and validates a 'py_modules' option.
  
      This should be a list of URIs.
      """
      if not isinstance(py_modules, list):
          raise TypeError(
              "`py_modules` must be a list of strings, got "
              f"{type(py_modules)}."
          )
  
      for uri in py_modules:
          validate_uri(uri)
  
      return py_modules
  
file_path: ray/python/ray/_private/runtime_env/validation.py
imports: import logging
  from pathlib import Path
  import sys
  from typing import Dict, List, Optional, Union
  from collections import OrderedDict
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: parse_and_validate_py_modules(py_modules) and returns: py_modules