<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_body(action, params):
 """Create http body for rest request."""

        body = {}
        body['action'] = action
        if params is not None:
            body['params'] = params
        return body