Returns TileJSON metadata for a tileset.

        Parameters
        ----------
        map_id : str
            The map's unique identifier in the format username.id.

        secure : bool, optional
            The representation of the requested resources, 
            where True indicates representation as HTTPS endpoints.

            The default value is False.

        Returns
        -------
        request.Response
            The response object with TileJSON metadata for the 
            specified tileset.

def metadata(self, map_id, secure=False):
        """Returns TileJSON metadata for a tileset.

        Parameters
        ----------
        map_id : str
            The map's unique identifier in the format username.id.

        secure : bool, optional
            The representation of the requested resources, 
            where True indicates representation as HTTPS endpoints.

            The default value is False.

        Returns
        -------
        request.Response
            The response object with TileJSON metadata for the 
            specified tileset.
        """

        # Create dict to assist in building URI resource path.

        path_values = dict(
            map_id=map_id
        )

        # Build URI resource path.

        path_part = "/{map_id}.json"
        uri = URITemplate(self.base_uri + path_part).expand(**path_values)

        # Build URI query parameters.

        query_parameters = dict()

        if secure:
            query_parameters["secure"] = ""

        # Send HTTP GET request.

        response = self.session.get(uri, params=query_parameters)
        self.handle_http_error(response)

        return response