def generate_random_asset_md():
 course_key = CourseKey.from_string('org/course/run')
 asset_key = course_key.make_asset_key(asset_type(), filename())
 (curr_version, prev_version) = versions()
 return AssetMetadata(asset_key, pathname=pathname(), internal_name=str([filename() for __ in xrange(10)]), locked=locked(), contenttype=contenttype(), thumbnail=filename(), fields=fields(), curr_version=curr_version, prev_version=prev_version, edited_by=user_id(), edited_by_email='staff@edx.org', edited_on=date_and_time(), created_by=user_id(), created_by_email='staff@edx.org', created_on=date_and_time())

def generate_random_asset_md ( ) : course_key = CourseKey . from_string ( 'org/course/run' ) asset_key = course_key . make_asset_key ( asset_type ( ) , filename ( ) ) ( curr_version , prev_version ) = versions ( ) return AssetMetadata ( asset_key , pathname = pathname ( ) , internal_name = str ( [ filename ( ) for __ in xrange ( 10 ) ] ) , locked = locked ( ) , contenttype = contenttype ( ) , thumbnail = filename ( ) , fields = fields ( ) , curr_version = curr_version , prev_version = prev_version , edited_by = user_id ( ) , edited_by_email = 'staff@edx.org' , edited_on = date_and_time ( ) , created_by = user_id ( ) , created_by_email = 'staff@edx.org' , created_on = date_and_time ( ) )
generates a single assetmetadata object with semi-random data .