code: def cmd_with_properties(commandline: List[str]):
      """Add extra arguments that use `trial` and `exp` properties"""
      cmd_args = commandline.copy()
      cmd_args.extend(
          [
              "--trial-name",
              "{trial.hash_name}",
              "--exp-name",
              "{exp.name}",
          ]
      )
  
      return cmd_args
  
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 8 for calling a global function with example usage: cmd_with_properties(commandline) and returns: cmd_args