code: def _contour_helper(self, args, kwargs):
          
          contour_kwargs = {}
          contour_kwargs['measurement'] = kwargs.pop('measurement', 'poles')
          contour_kwargs['method'] = kwargs.pop('method', 'exponential_kamb')
          contour_kwargs['sigma'] = kwargs.pop('sigma', 3)
          contour_kwargs['gridsize'] = kwargs.pop('gridsize', 100)
          contour_kwargs['weights'] = kwargs.pop('weights', None)
          lon, lat, totals = contouring.density_grid(*args, **contour_kwargs)
          return lon, lat, totals, kwargs
docs: Unify defaults and common functionality of ``density_contour`` and
          ``density_contourf``.