def METHOD_NAME(self, url):
    """Concatenates basepath directory to URL only if defined in the keyword arguments.
    It also strips out the scheme 'file:///' from the URL if present.
    Parameters
    ----------
    url : str
        Mesh location.
    Returns
    -------
    url: str
        Extended mesh url location if basepath in kwargs.
        Else, it returns url.
    """
    if url.startswith("file:///"):
        url = url[8:]
    basepath = self.attr.get("basepath")
    if basepath:
        return os.path.join(basepath, url)
    return url