<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load(param):
 """ If the supplied parameter is a string, assum it's a simple pattern. """

    return (
        Pattern(param) if isinstance(param, str)
        else param if param is not None
        else Null()
    )