parameters: (class_)
return_statement: return decode
docstring: Generate a decode function that checks for special character
      arguments first (and generates a fixed colour) before building a
      BlobVisualData of the given class
docstring_summary: Generate a decode function that checks for special character
      arguments first (and generates a fixed colour) before building a
      BlobVisualData of the given class
docstring_tokens: Generate a decode function that checks for special character arguments first ( and generates a fixed colour ) before building a BlobVisualData of the given class
function: def special_view_decoder(class_):
      """Generate a decode function that checks for special character
      arguments first (and generates a fixed colour) before building a
      BlobVisualData of the given class"""
      def decode(symbol):
          if symbol in special_state_colours:
              return Colour(special_state_colours[symbol])
          else:
              return class_().from_string(symbol)
      return decode
function_tokens: def special_view_decoder ( class_ ) : def decode ( symbol ) : if symbol in special_state_colours : return Colour ( special_state_colours [ symbol ] ) else : return class_ ( ) . from_string ( symbol ) return decode