class_docstr: A class that adapts the PyTorch model inputs to exported ONNX model inputs format.
class_docstr_tok: ["A","class","that","adapts","the","PyTorch","model","inputs","to","exported","ONNX","model","inputs","format","."]
code: def __init__(self, steps: Optional[List[InputAdaptStep]] = None):
      self._steps = steps or []
  
imports: from __future__ import annotations
  import inspect
  from typing import Any, Callable, List, Mapping, Optional, Protocol, runtime_checkable, Sequence, Tuple, Union
  import torch
  import torch.export
  from torch.onnx._internal import _beartype
  from torch.utils import _pytree
label_desc: Use image node_id 1 to create a new InputAdapter object  with example: obj = InputAdapter(steps)