<s> from skimage . _shared . utils import copy_func <EOL> import numpy . testing as npt <EOL> def test_copyfunc ( ) : <EOL> def foo ( a ) : <EOL> return a <EOL> bar = copy_func ( foo , name = '<STR_LIT:bar>' ) <EOL> other = copy_func ( foo ) <EOL> npt . assert_equal ( bar . __name__ , '<STR_LIT:bar>' ) <EOL> npt . assert_equal ( other . __name__ , '<STR_LIT:foo>' ) <EOL> other . __name__ = '<STR_LIT>' <EOL> npt . assert_equal ( foo . __name__ , '<STR_LIT:foo>' ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> npt . run_module_suite ( ) </s>
