def _create_bitstream(file_path, local_file, item_id, log_ind=None):
checksum = _streaming_file_md5(file_path)<EOL>upload_token = session.communicator.generate_upload_token(<EOL>session.token, item_id, local_file, checksum)<EOL>if upload_token != '<STR_LIT>':<EOL><INDENT>log_trace = '<STR_LIT>'.format(file_path)<EOL>session.communicator.perform_upload(<EOL>upload_token, local_file, filepath=file_path, itemid=item_id)<EOL><DEDENT>else:<EOL><INDENT>log_trace = '<STR_LIT>''<STR_LIT>'.format(file_path)<EOL><DEDENT>if log_ind is not None:<EOL><INDENT>log_trace += log_ind<EOL><DEDENT>print(log_trace)<EOL>
Create a bitstream in the given item.

:param file_path: full path to the local file
:type file_path: string
:param local_file: name of the local file
:type local_file: string
:param log_ind: (optional) any additional message to log upon creation of
    the bitstream
:type log_ind: None | string