keras/src/export/export_lib.py/ExportArchive/_get_variables_used_by_endpoints
class ExportArchive:    def _get_variables_used_by_endpoints(self):
        fns = [self._get_concrete_fn(name) for name in self._endpoint_names]
        return _list_variables_used_by_fns(fns)