Helper method to update WeldObject with some data.

    Parameters
    ----------
    weld_obj : WeldObject
        WeldObject to update.
    data : numpy.ndarray or WeldObject or str
        Data for which to get an id. If str, it is a placeholder or 'str' literal.

    Returns
    -------
    str
        The id of the data, e.g. _inp0 for raw data, obj101 for WeldObject

def get_weld_obj_id(weld_obj, data):
    """Helper method to update WeldObject with some data.

    Parameters
    ----------
    weld_obj : WeldObject
        WeldObject to update.
    data : numpy.ndarray or WeldObject or str
        Data for which to get an id. If str, it is a placeholder or 'str' literal.

    Returns
    -------
    str
        The id of the data, e.g. _inp0 for raw data, obj101 for WeldObject

    """
    obj_id = weld_obj.update(data)
    if isinstance(data, WeldObject):
        obj_id = data.obj_id
        weld_obj.dependencies[obj_id] = data

    return obj_id