code: def test_infer_user_script(script_path: str):
      """Test that user script is inferred correctly"""
      parser = OrionCmdlineParser()
      parser.parse(f"{script_path} and some args".split(" "))
      assert parser.user_script == script_path
  
imports: import os
  from pathlib import Path
  from typing import Any, List, NamedTuple, Optional, Tuple
  import pytest
  from orion.core.io.convert import JSONConverter
  from orion.core.io.orion_cmdline_parser import OrionCmdlineParser
  from orion.core.worker.experiment import Experiment
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 21 for calling a global function with example usage: test_infer_user_script(script_path) without return types