class_docstr: Consistent bidirectional mapping between integer positional dimensions and names.
  Can be queried like a dictionary (``value = frame[key]``, ``frame[key] = value``).
class_docstr_tok: ["Consistent","bidirectional","mapping","between","integer","positional","dimensions","and","names",".","Can","be","queried","like","a","dictionary","(","``","value","=","frame","[","key","]","``",",","``","frame","[","key","]","=","value","``",")","."]
code: def __contains__(self, key):
      assert isinstance(key, (int, str))
      return key in (
          self.dim_to_name if isinstance(key, int) else self.name_to_dim
      )
  
imports: from collections import Counter, OrderedDict, namedtuple
  from enum import Enum
label_desc: Use image node_id 5 for calling the StackFrame obj's underlying member method code with example usage: obj.__contains__(key) and returns: unknown