I doubt it was the inspiration but in the forties and onwards there was a boy with a vivid imagination, a character in comics and animations .
Two well known instances include Sparky's Magic Piano and Sparky and the talking train ,the latters voice inspired Geoff Lynnes MR Blue Sky, tenuous...