def METHOD_NAME(x, copy=False):
    """Permissivley convert objects to in-memory representation.
    If they already are in-memory, (or are just unrecognized) pass a copy through.
    """
    if copy and hasattr(x, "copy"):
        return x.copy()
    else:
        return x