code: def add_header(self, header):
          
          if type(header) is dict:
              self._headers.update(header)
          else:
              raise ValueError(
                  "Dictionary expected, got '%s' instead" % type(header)
              )
docs: Add a custom HTTP header to the client's request headers