code: def kwargs_to_cli_ags(**kwargs):
      cli_args = []
      for k, v in kwargs.items():
          cli_args.append(f"--{k}")
          if v is not None:
              cli_args.append(str(v))
      args = RankingTrainEvalRunner.parse_cli_args(cli_args)
      return args
  
file_path: Merlin/tests/integration/examples/quick_start/test_ranking.py
imports: import os
  import tempfile
  import time
  import pytest
  from examples.quick_start.scripts.ranking.ranking import RankingTrainEvalRunner
  from merlin.io.dataset import Dataset
label_desc: Use image node_id 2 for calling a global function with example usage: kwargs_to_cli_ags() and returns: args