def create(self, **kwargs):
url_str = self.base_url<EOL>if '<STR_LIT>' in kwargs:<EOL><INDENT>url_str = url_str + '<STR_LIT>' % kwargs['<STR_LIT>']<EOL>del kwargs['<STR_LIT>']<EOL><DEDENT>data = kwargs['<STR_LIT>'] if '<STR_LIT>' in kwargs else kwargs<EOL>body = self.client.create(url=url_str, json=data)<EOL>return body<EOL>
Create a metric.