class_docstr: Argparse action for storing key-value pairs as a dictionary.
  
  For example, calling a CLI program with ``--mydict v1=k1 v2=5``:
  
  >>> parser.add_argument("--mydict", dest="my_dict", action=StoreDictKeyPair, nargs="+")
  >>> args = parser.parse()
  >>> args.my_dict
  {"v1": "k1", "v2": "5"}
  
  Note that strings will be converted to ints and floats if possible.
class_docstr_tok: ["Argparse","action","for","storing","key-value","pairs","as","a","dictionary",".","For","example",",","calling","a","CLI","program","with","``","--","mydict","v1=k1","v2=5","``",":",">",">",">","parser.add_argument","(","``","--","mydict","''",",","dest=","''","my_dict","''",",","action=StoreDictKeyPair",",","nargs=","''","+","''",")",">",">",">","args","=","parser.parse","(",")",">",">",">","args.my_dict","{","``","v1","''",":","``","k1","''",",","``","v2","''",":","``","5","''","}","Note","that","strings","will","be","converted","to","ints","and","floats","if","possible","."]
code: def __init__(self, option_strings, dest, nargs=None, **kwargs):
      self._nargs = nargs
      super().__init__(option_strings, dest, nargs=nargs, **kwargs)
  
file_path: pennylane/pennylane/devices/tests/conftest.py
imports: import argparse
  import os
  import numpy
  import pytest
  from _pytest.runner import pytest_runtest_makereport
  import pennylane
label_desc: Use image node_id 1 to create a new StoreDictKeyPair object from inherited base classes: argparse with example: obj = StoreDictKeyPair(option_strings, dest, nargs)