code: def _encoder(arg: Any) -> Type:
      # Allow type variables to be passed as arguments at runtime
      return arg if isinstance(arg, type) else type(arg)
  
file_path: botorch/botorch/models/utils/parse_training_data.py
imports: from __future__ import annotations
  from typing import Any, Dict, Type
  import torch
  from botorch.models.model import Model
  from botorch.models.pairwise_gp import PairwiseGP
  from botorch.utils.datasets import RankingDataset, SupervisedDataset
  from botorch.utils.dispatcher import Dispatcher
  from torch import Tensor
label_desc: Use image node_id 1 for calling a global function with example usage: _encoder(arg) and returns: unknown