code: def _get_single_depth(self, multi_index):
          '''
          Helper method for determining how many single index entries there
          are in a particular multi-index
          '''
          single_depth = 0
          for subind in multi_index:
              if is_slice_or_dim_range(subind):
                  break
              single_depth += 1
          return single_deptf _get_single_depth(self, multi_index):
          '''
          Helper method for determining how many single index entries there
          are in a particular multi-index
          '''
          single_depth = 0
          for subind in multi_index:
              if is_slice_or_dim_range(subind):
                  break
              single_depth += 1
          return single_depth
docs: Helper method for determining how many single index entries there
          are in a particular multi-index