def resolve_state_dict(s):
    """
    Resolves a state, which can be a filename or a dict-like object.
    """
    if isinstance(s, str):
        return unbox_numpy_null(numpy.load(s))
    return s

    Resolves a state, which can be a filename or a dict-like object.
    
util/runningstats.py