<s> import yaml <EOL> import os . path <EOL> from jnpr . junos . factory . factory_loader import FactoryLoader <EOL> __all__ = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> def loadyaml ( path ) : <EOL> """<STR_LIT>""" <EOL> if os . path . splitext ( path ) [ <NUM_LIT:1> ] == '<STR_LIT>' : <EOL> path += '<STR_LIT>' <EOL> return FactoryLoader ( ) . load ( yaml . load ( open ( path , '<STR_LIT:r>' ) ) ) </s>
