code: def invoke(self, function_name, raw_python=False, command=None, no_color=False):
          
  
          # There are three likely scenarios for 'command' here:
          #   command, which is a modular function path
          #   raw_command, which is a string of python to execute directly
          #   manage, which is a Django-specific management command invocation
          key = command if command is not None else 'command'
          if raw_python:
              command = {'raw_command': function_name}
          else:
              command = {key: function_name}
  
          # Can't use hjson
          import json as json
  
          response = self.zappa.invoke_lambda_function(
              self.lambda_name,
              json.dumps(command),
              invocation_type='RequestResponse',
          )
  
          if 'LogResult' in response:
              if no_color:
                  print(base64.b64decode(response['LogResult']))
              else:
                  decoded = base64.b64decode(response['LogResult']).decode()
                  formatted = self.format_invoke_command(decoded)
                  colorized = self.colorize_invoke_command(formatted)
                  print(colorized)
          else:
              print(response)
  
          # For a successful request FunctionError is not in response.
          # https://github.com/Miserlou/Zappa/pull/1254/
          if 'FunctionError' in response:
              raise ClickException(
                  "{} error occurred while invoking command.".format(response['FunctionError'])
  )
docs: Invoke a remote function.