def real_name(magic_func):
 magic_name = magic_func.__name__
 if magic_name.startswith('magic_'):
  magic_name = magic_name[len('magic_'):]
 return getattr(magic_func, 'argcmd_name', magic_name)

def real_name ( magic_func ) : magic_name = magic_func . __name__ if magic_name . startswith ( 'magic_' ) : magic_name = magic_name [ len ( 'magic_' ) : ] return getattr ( magic_func , 'argcmd_name' , magic_name )
find the real name of the magic .