Open name_from_path to other ExecutableSpec implementations.
Open name_from_path to other ExecutableSpec implementations.

PiperOrigin-RevId: 385743180
Change-Id: Ia25da7b500f13a7c6afb8c209c8f273f54f7d1fd
GitOrigin-RevId: 22104c6b55fa1bd4a56ab7c0201830c160eab261

deepmind/xmanager,deepmind/xmanager