<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def masquerade(origin: str, orig: Type[TA], new: Type[TB], **map: str) -> str: """Make ``orig`` appear as new"""


    return _masquerade(origin, cache_get(orig), cache_get(new), **map)