import Internal.Check from base Accelerate package