def get_fileobject_size(file_object):
    """Return byte size of file-object

    Parameters
    ----------
    file_object : file object

    Returns
    -------
    nbytes : int
    """
    file_object.seek(0, 2)
    nbytes = file_object.tell()
    file_object.seek(0)
    return nbytes
