def __init__(self, state_json, file_handle):
            # True if this file is still a valid portion of the overall iterator.
            self.valid = True
            # The mark position of the bytes in this file.
            self.position_start = state_json['position_start']
            self.position_end = state_json['position_end']
            self.file_handle = file_handle
            if 'inode' in state_json:
                self.inode = state_json['inode']
            self.last_known_size = state_json['last_known_size']
            # Is this file currently at the file path of the log file (or is it a file a rotated log).
            self.is_log_file = state_json['is_log_file']
If S3 bucket doesn't exist, create it
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/log_processing.py/LogFileIterator.FileState.__init__--crossover with--dataset/ETHPy150Open mathcamp/pypicloud/tests/test_storage.py/TestS3Storage.test_create_bucket