Add support for partial imports (#11776)

Change-Id: I5696e63b618294b4e6bbd3b0e407befddc5aa8a8