code: def run():
      args = parse_args()
      r = redis.Redis()
      r.flushall()
      set_str(
          conn=r, num=args.n, pipeline_size=args.P, data_size=args.s
      )
      set_int(
          conn=r, num=args.n, pipeline_size=args.P, data_size=args.s
      )
      get_str(
          conn=r, num=args.n, pipeline_size=args.P, data_size=args.s
      )
      get_int(
          conn=r, num=args.n, pipeline_size=args.P, data_size=args.s
      )
      incr(conn=r, num=args.n, pipeline_size=args.P, data_size=args.s)
      lpush(conn=r, num=args.n, pipeline_size=args.P, data_size=args.s)
      lrange_300(
          conn=r, num=args.n, pipeline_size=args.P, data_size=args.s
      )
      lpop(conn=r, num=args.n, pipeline_size=args.P, data_size=args.s)
      hmset(conn=r, num=args.n, pipeline_size=args.P, data_size=args.s)
  
file_path: redis-py/benchmarks/basic_operations.py
imports: import time
  from argparse import ArgumentParser
  from functools import wraps
  import redis
label_desc: Use image node_id 2 for calling a global function with example usage: run() without return types