def nodebalancer_create(self, region, **kwargs):
params = {<EOL>"<STR_LIT>": region.id if isinstance(region, Base) else region,<EOL>}<EOL>params.update(kwargs)<EOL>result = self.post('<STR_LIT>', data=params)<EOL>if not '<STR_LIT:id>' in result:<EOL><INDENT>raise UnexpectedResponseError('<STR_LIT>', json=result)<EOL><DEDENT>n = NodeBalancer(self, result['<STR_LIT:id>'], result)<EOL>return n<EOL>
Creates a new NodeBalancer in the given Region.

:param region: The Region in which to create the NodeBalancer.
:type region: Region or str

:returns: The new NodeBalancer
:rtype: NodeBalancer