code: def lvis_evaluator_factory(lvis_gt: LVIS, iou_types: List[str]):
      from avalanche.evaluation.metrics.detection_evaluators.lvis_evaluator import (
          LvisEvaluator,
      )
  
      return LvisEvaluator(lvis_gt=lvis_gt, iou_types=iou_types)
  
imports: import os
  from pathlib import Path
  import torch
  import json
  from typing import Any, Generic, List, Union, TypeVar, Tuple, Dict, TYPE_CHECKING, Type, Callable, Sequence, Optional
  from avalanche.benchmarks.utils.data import AvalancheDataset
  from torch import Tensor
  from json import JSONEncoder
  from torch.utils.data import Subset, ConcatDataset
  from typing_extensions import Protocol
  from avalanche.evaluation import PluginMetric
  from avalanche.evaluation.metric_results import MetricValue
  from avalanche.evaluation.metric_utils import get_metric_name
label_desc: Use image node_id 3 for calling a global function with example usage: lvis_evaluator_factory(lvis_gt, iou_types) and returns: LvisEvaluator