def METHOD_NAME(self, sql_cmd):
    if 'select' in sql_cmd.lower().split():
        request = requests.post(
                    url=self.sessioned_url + ':executeSql',
                    json={"sql": sql_cmd},
                    headers=self.headers
                )
    else:
        request = requests.patch(
                url=os.path.join(self.spanner_database_url, 'ddl'),
                json={"statements": [sql_cmd]},
                headers=self.headers
                )
    return request.json()