'Invoke a remote function.'

def invoke(self, function_name, raw_python=False, command=None, no_color=False):

    key = (command if (command is not None) else u'command')
    if raw_python:
        command = {u'raw_command': function_name}
    else:
        command = {key: function_name}
    import json as json
    response = self.zappa.invoke_lambda_function(self.lambda_name, json.dumps(command), invocation_type=u'RequestResponse')
    if (u'LogResult' in response):
        if no_color:
            print base64.b64decode(response[u'LogResult'])
        else:
            decoded = base64.b64decode(response[u'LogResult']).decode()
            formated = self.format_invoke_command(decoded)
            colorized = self.colorize_invoke_command(formated)
            print colorized
    else:
        print response
