Zend certified PHP/Magento developer

How to get the product type by the product id?

I don’t want to load the product to get the product type.

How could I get the product type by id? Today I’m using the get product type by SKU using the interface:

MagentoInventoryCatalogApiModelGetProductTypesBySkusInterface

Using:

$this->getProductTypeBySku->execute([$item->getSku()])