def METHOD_NAME(event, q=None):
    if q:
        event = json.loads(event)
    kwargs = event["fn_kwargs"]
    args = event["fn_args"]
    try:
        response = {
            "Result": func(*args, **kwargs),
            "StatusCode": 200
        }
    except Exception as e:
        response = { 
            "Result": str(e),
            "StatusCode": 500 
        }
    if not q:
        return response
    q.put(response)