code: def _parse_bbox_grid(bbox_grid):
          
          if isinstance(bbox_grid, BBoxCollection):
              return bbox_grid
  
          if isinstance(bbox_grid, list):
              return BBoxCollection(bbox_grid)
  
          raise ValueError("Parameter 'bbox_grid' should be an instance of {}".format(BBoxCollection.__name__))
docs: Helper method for parsing bounding box grid. It will try to parse it into `BBoxCollection`