def METHOD_NAME(self, privacy=False, *args, **kwargs):
    """
    Returns the URL built dynamically based on specified arguments.
    """
    # Prepare our cache value
    if isinstance(self.cache, bool) or not self.cache:
        cache = 'yes' if self.cache else 'no'
    else:
        cache = int(self.cache)
    # Define any URL parameters
    params = {
        'encoding': self.encoding,
        'cache': cache,
    }
    if self.config_format:
        # A format was enforced; make sure it's passed back with the url
        params['format'] = self.config_format
    return 'file://{path}{params}'.format(
        path=self.quote(self.path),
        params='?{}'.format(self.urlencode(params)) if params else '',
    )