Fix explicit local code resolution for tokenizers and image processors (#45169)
* Fix tokenizer `explicit_local_code` detection
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
* Fix image processor `explicit_local_code` detection
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
---------
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>