Returns the size, in bytes, of a file. Expects an object that supports
    seek and tell methods.

    Args:
        file_object (file_object) - The object that represents the file

    Returns:
        (int): size of the file, in bytes

def get_file_size(file_object):
    '''Returns the size, in bytes, of a file. Expects an object that supports
    seek and tell methods.

    Args:
        file_object (file_object) - The object that represents the file

    Returns:
        (int): size of the file, in bytes'''
    position = file_object.tell()

    file_object.seek(0, 2)
    file_size = file_object.tell()
    file_object.seek(position, 0)

    return file_size