The MetadataHelper function helps you fetch the metadata for an entity for a specified RecordType. The IMetadataHelper instance returned when GetMetadataHelper() is called performs the following method:
var metadataHelper = GetMetadataHelper();
var logHelper = GetLogHelper();
var recordTypeId = await metadataHelper.GetRecordTypeIdbyName("Product2", "Master");
logHelper.LogDebug(recordTypeId);