def METHOD_NAME(self, resource_name, **endpoint_format_args):
    # Add API key to arguments to be placed into method call.
    endpoint = self.resources[resource_name] + "&key={api_key}"
    endpoint_format_args["api_key"] = self.api_key
    # Insert argument values into endpoint string. This technique
    # defaults values in the endpoint string to blank if they are
    # not specified in the given keyword arguments.
    endpoint = string.Formatter().vformat(
        endpoint, (), defaultdict(str, **endpoint_format_args)
    )
    # Build complete URL.
    url = self.root + endpoint
    return url