<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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