file state: type(X) is Y ==> isinstance(X, Y)
Merge pull request #14525 from hulu/use-isinstance-file

file state: type(X) is Y ==> isinstance(X, Y)