def METHOD_NAME(client,
                   resource_group_name=None):
    if resource_group_name is None:
        return client.list()
    return client.list_by_resource_group(resource_group_name=resource_group_name)