code: def create(self, path, data, **kwargs):
          
          metadata_response = self._put(
              path, 'CREATE', expected_status=httplib.TEMPORARY_REDIRECT, **kwargs)
          assert not metadata_response.content
          data_response = self._requests_session.put(
              metadata_response.headers['location'], data=data, **self._requests_kwargs)
          _check_response(data_response, expected_status=httplib.CREATED)
          assert not data_response.content
docs: Create a file at the given path.
  
          :param data: ``bytes`` or a ``file``-like object to upload
          :param overwrite: If a file already exists, should it be overwritten?
          :type overwrite: bool
          :param blocksize: The block size of a file.
          :type blocksize: long
          :param replication: The number of replications of a file.
          :type replication: short
          :param permission: The permission of a file/directory. Any radix-8 integer (leading zeros
              may be omitted.)
          :type permission: octal
          :param buffersize: The size of the buffer used in transferring data.
          :type buffersize: int