``if type(metadata) is str or type(metadata) is unicode:``