'show( self, trans, id, library_id, **kwd )
* GET /api/libraries/{library_id}/contents/{id}
Returns information about library file or folder.
:param  id:         the encoded id of the library item to return
:type   id:         str
:param  library_id: the encoded id of the library that contains this item
:type   library_id: str
:returns:   detailed library item information
:rtype:     dict
.. seealso::
:func:`galaxy.model.LibraryDataset.to_dict` and
:attr:`galaxy.model.LibraryFolder.dict_element_visible_keys`'

@expose_api
def show(self, trans, id, library_id, **kwd):

    (class_name, content_id) = self.__decode_library_content_id(id)
    if (class_name == 'LibraryFolder'):
        content = self.get_library_folder(trans, content_id, check_ownership=False, check_accessible=True)
        rval = content.to_dict(view='element', value_mapper={'id': trans.security.encode_id})
        rval['id'] = ('F' + str(rval['id']))
        if (rval['parent_id'] is not None):
            rval['parent_id'] = ('F' + str(trans.security.encode_id(rval['parent_id'])))
        rval['parent_library_id'] = trans.security.encode_id(rval['parent_library_id'])
    else:
        content = self.get_library_dataset(trans, content_id, check_ownership=False, check_accessible=True)
        rval = content.to_dict(view='element')
        rval['id'] = trans.security.encode_id(rval['id'])
        rval['ldda_id'] = trans.security.encode_id(rval['ldda_id'])
        rval['folder_id'] = ('F' + str(trans.security.encode_id(rval['folder_id'])))
        rval['parent_library_id'] = trans.security.encode_id(rval['parent_library_id'])
    return rval
