def contains_dim(self, dim):
    "\n        equivalent to ``dim in self['dims']``\n\n        "
    index = bisect_left(self['dims'], dim)
    return ((index < len(self['dims'])) and (self['dims'][index] == dim))
equivalent to ``dim in self['dims']``
def contains_dim(self, dim):
    "\n        \n\n        "
    index = bisect_left(self['dims'], dim)
    return ((index < len(self['dims'])) and (self['dims'][index] == dim))