code: def __api_call(self, api_func, endpoint, print_info, data=None):
      print(print_info + "...   ", end="")
      response = api_func(
          _readme_api_url + endpoint,
          headers=self.__headers,
          auth=HTTPBasicAuth(self.auth_token, ""),
          data=data,
      )
      if response.status_code not in [200, 201, 204]:
          print(
              "Error (code "
              + str(response.status_code)
              + "): "
              + response.text
          )
          return None
      else:
          print()
          return (
              None
              if api_func == requests.delete
              else json.loads(response.text)
          )
  
imports: import json
  import os
  from requests.auth import HTTPBasicAuth
  import requests
label_desc: Use image node_id 3 for calling the ReadMeSession obj's underlying member method code with example usage: obj.__api_call(api_func, endpoint, print_info, data) and returns: None, unknown