<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Vendor\SecondModule2\Model;

class TheClass extends \Magento\Catalog\Model\Product
{

    public function execute(\Magento\Catalog\Model\Product $product)
    {
        $constant = \Magento\Catalog\Helper\Image::MEDIA_TYPE_CONFIG_NODE;
        $property = $product->someProperty;
    }
}
