def METHOD_NAME(self, keys=None):
    """
        Retrieves a dict of namespaces from the namespace mapping
        Parameters
        ----------
        - keys: List of keys query and return
        Example:
        --------
        >>> ns = Namespaces()
        >>> x = ns.get_namespaces(['csw','gmd'])
        >>> x == {'csw': 'http://www.opengis.net/cat/csw/2.0.2', 'gmd': 'http://www.isotc211.org/2005/gmd'}
        True
        >>> x = ns.get_namespaces('csw')
        >>> x == {'csw': 'http://www.opengis.net/cat/csw/2.0.2'}
        True
        >>> ns.get_namespaces()
        {...}
    """
    # If we aren't looking for any namespaces in particular return the whole dict
    if keys is None or len(keys) == 0:
        return self.namespace_dict
    if isinstance(keys, str):
        return {keys: self.get_namespace(keys)}
    retval = {}
    for key in keys:
        retval[key] = self.get_namespace(key)
    return retval