class_docstr: The NetworkWrapper wraps the underlying network connection to simplify
  the interface a bit. This can be replaced with something that can be built
  on some other type of network connection, such as PyCURL.
  
  This version requires you to instantiate a requests session object to your
  liking. It will create a generic session for you if you don't specify it,
  which you can modify later.
  
  For authentication, use::
  
      session.auth = (username, password)
class_docstr_tok: ["The","NetworkWrapper","wraps","the","underlying","network","connection","to","simplify","the","interface","a","bit",".","This","can","be","replaced","with","something","that","can","be","built","on","some","other","type","of","network","connection",",","such","as","PyCURL",".","This","version","requires","you","to","instantiate","a","requests","session","object","to","your","liking",".","It","will","create","a","generic","session","for","you","if","you","do","n't","specify","it",",","which","you","can","modify","later",".","For","authentication",",","use",":",":","session.auth","=","(","username",",","password",")"]
code: def raise_error(response):
      logger.error(
          f"Error with server response. code={response.status_code}; "
          f"text={response.text}"
      )
  
      raise ResponseError(response)
  
imports: import abc
  from collections.abc import MutableMapping
  import logging
  import requests
  from requests.auth import HTTPBasicAuth
  from re import compile
  import json
label_desc: Use image node_id 2 for calling the RequestsNetworkWrapper obj's underlying member method code with example usage: obj.raise_error(response) without return types