parameters: (self, amt=None)
return_statement: return chunk
docstring: Read at most amt bytes from the stream.
  
          If the amt argument is omitted, read all data.
docstring_summary: Read at most amt bytes from the stream.
docstring_tokens: Read at most amt bytes from the stream .
function: def read(self, amt=None):
          """Read at most amt bytes from the stream.
  
          If the amt argument is omitted, read all data.
          """
          try:
              chunk = self._raw_stream.read(amt)
          except URLLib3ReadTimeoutError as e:
              # TODO: the url will be None as urllib3 isn't setting it yet
              raise ReadTimeoutError(endpoint_url=e.url, error=e)
          self._amount_read += len(chunk)
          if amt is None or (not chunk and amt > 0):
              # If the server sends empty contents or
              # we ask to read all of the contents, then we know
              # we need to verify the content length.
              self._verify_content_length()
          return chunk
function_tokens: def read ( self , amt = None ) : try : chunk = self . _raw_stream . read ( amt ) except URLLib3ReadTimeoutError as e : # TODO: the url will be None as urllib3 isn't setting it yet raise ReadTimeoutError ( endpoint_url = e . url , error = e ) self . _amount_read += len ( chunk ) if amt is None or ( not chunk and amt > 0 ) : # If the server sends empty contents or # we ask to read all of the contents, then we know # we need to verify the content length. self . _verify_content_length ( ) return chunk