# Path: gbdxtools/auth.py
# def Auth(**kwargs):
#     global auth
#     if auth is None or len(kwargs) > 0:
#         auth = _Auth(**kwargs)
#     return auth


import numpy as np
    import matplotlib.pyplot as plt
from imageio import imread
from shapely.geometry import shape
from shapely.wkt import loads
from gbdxtools.auth import Auth 
try:
    has_matplotlib = True
except ImportError:
    has_matplotlib = False


class BrowseImage(object):
    """
      Image class for fetching and spatially indexing an image's browse image (low res previews)

      Args:
          catalog_id (str): the catalog id for the browse image
          bbox (list): the bounding box in WGS84 coords for spatial indexing
      Returns:
          BrowseImage (object)
    """    
    def __init__(self, catalog_id, bbox=None):

# Path: gbdxtools/auth.py
# def Auth(**kwargs):
#     global auth
#     if auth is None or len(kwargs) > 0:
#         auth = _Auth(**kwargs)
#     return auth


# Path: gbdxtools/images/browse_image.py
import numpy as np
    import matplotlib.pyplot as plt
from imageio import imread
from shapely.geometry import shape
from shapely.wkt import loads
from gbdxtools.auth import Auth 

try:
    has_matplotlib = True
except ImportError:
    has_matplotlib = False


class BrowseImage(object):
    """
      Image class for fetching and spatially indexing an image's browse image (low res previews)

      Args:
          catalog_id (str): the catalog id for the browse image
          bbox (list): the bounding box in WGS84 coords for spatial indexing
      Returns:
          BrowseImage (object)
    """    
    def __init__(self, catalog_id, bbox=None):

        self._interface = Auth() 