code: def clean_args(args) -> dict:
      """Handle conversion to lists etc. for args"""
  
      assert (
          not args.provide_description
      ), "provide-description is not implemented"
  
      if args.limit:
          print(
              "WARNING: --limit SHOULD ONLY BE USED FOR TESTING. REAL METRICS SHOULD NOT BE COMPUTED USING LIMIT."
          )
  
      if args.tasks is None:
          args.tasks = tasks.ALL_TASKS
      else:
          args.tasks = pattern_match(
              args.tasks.split(","), tasks.ALL_TASKS
          )
  
      print(f"Selected Tasks: {args.tasks}")
      if args.num_fewshot is not None:
          args.num_fewshot = [
              int(n) for n in args.num_fewshot.split(",")
          ]
  
      if args.limit is not None:
          args.limit = [
              int(n) if n.isdigit() else float(n)
              for n in args.limit.split(",")
          ]
  
      return vars(args)
  
file_path: lm-evaluation-harness/main.py
imports: import os
  import argparse
  import json
  import logging
  import fnmatch
  from lm_eval import tasks, evaluator
label_desc: Use image node_id 2 for calling a global function with example usage: clean_args(args) and returns: vars