"""This file defines the types for type annotations.These names aren't part of the module namespace, but they are used in theannotations in the function signatures. The functions in the module are onlyvalid for inputs that match the given type annotations."""from__future__importannotations__all__=["Array","Device","Dtype","SupportsDLPack","SupportsBufferProtocol","PyCapsule",]fromtypingimport(Any,Literal,Union,TypeVar,Protocol,)from._array_objectimportArrayfromnumpyimport(dtype,int8,int16,int32,int64,uint8,uint16,uint32,uint64,float32,float64,)_T_co=TypeVar("_T_co",covariant=True)classNestedSequence(Protocol[_T_co]):def__getitem__(self,key:int,/)->_T_co|NestedSequence[_T_co]:...def__len__(self,/)->int:...Device=Literal["cpu"]Dtype=dtype[Union[int8,int16,int32,int64,uint8,uint16,uint32,uint64,float32,float64,]]SupportsBufferProtocol=AnyPyCapsule=Any