code: def dim_extent_size(self, *args, **kwargs):
          
  
  
          extents = self.dim_extents(*args, **kwargs)
  
          # Handle tuples and sequences differently
          if isinstance(extents, tuple):
              return extents[1] - extents[0]
          else: # isinstance(extents, collections.Sequence):
              return (u-l for l, u in extents)
docs: Returns extent sizes of the dimensions in args.
  
          .. code-block:: python
  
              ts, bs, cs = cube.dim_extent_size('ntime', 'nbl', 'nchan')
  
          or
  
          .. code-block:: python
  
              ts, bs, cs, ss = cube.dim_extent_size('ntime,nbl:nchan nsrc')