def __init__(self, auth: Optional[Auth] = None, *args: Any, **kwargs: Any) -> None:
        """Build an instance of DataService to query CMR.

        auth is an optional parameter for queries that need authentication,
        e.g. restricted datasets.

        Parameters:
            auth: An authenticated `Auth` instance.
        """
        super().__init__(*args, **kwargs)
        self._debug = False

        # To search, we need the new bearer tokens from NASA Earthdata
        self.session = (
            auth.get_session(bearer_token=True)
            if auth is not None and auth.authenticated
            else requests.sessions.Session()
        )
Build an instance of DataService to query CMR.

        auth is an optional parameter for queries that need authentication,
        e.g. restricted datasets.

        Parameters:
            auth: An authenticated `Auth` instance.
        
earthaccess/services.py