code: def create_user(self, body, **kwargs):  # noqa: E501
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('asynchronous'):
              return self.create_user_with_http_info(body, **kwargs)  # noqa: E501
          else:
              (data) = self.create_user_with_http_info(body, **kwargs)  # noqa: E501
              return data
docs: Create a new user.  # noqa: E501
  
          An endpoint for creating or inviting a new user to the account. In case of invitation email address is used only, other attributes are set in the 2nd step.   **Example usage:** `curl -X POST https://api.us-east-1.mbedcloud.com/v3/users?action=invite -d {\"email\": \"myemail@company.com\"} -H 'content-type: application/json' -H 'Authorization: Bearer API_KEY'`  # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass asynchronous=True
          >>> thread = api.create_user(body, asynchronous=True)
          >>> result = thread.get()
  
          :param asynchronous bool
          :param UserInfoReq body: A user object with attributes. (required)
          :param str action: Action, either 'create' or 'invite'.
          :return: UserInfoResp
                   If the method is called asynchronously,
                   returns the request thread.