def METHOD_NAME(self, custom_pyformat=None):
    output_dir = "azure://mystorage.blob.core.windows.net/logs"
    if custom_pyformat:
        output_dir = AzureStorageOutput.join(output_dir, custom_pyformat)
    output = AzureStorageOutput(
        ExecutionContext(
            None,
            Bag(name="xyz", provider_name='azure'),
            Config.empty(output_dir=output_dir)
        ),
        {'url': output_dir},
    )
    self.addCleanup(shutil.rmtree, output.root_dir)
    return output