Drupal 8 获取Image styleURL

$path = \Drupal\image\Entity\ImageStyle::load('myimagestyle')->buildUrl($file->getFileUri());