Helper method to create a WeldObject and update with data.

    Parameters
    ----------
    data : numpy.ndarray or WeldObject or str
        Data to include in newly created object. If str, it is a placeholder or 'str' literal.

    Returns
    -------
    (str, WeldObject)
        Object id for the data to use in the Weld code and
        the WeldObject updated with the data.

def create_weld_object(data):
    """Helper method to create a WeldObject and update with data.

    Parameters
    ----------
    data : numpy.ndarray or WeldObject or str
        Data to include in newly created object. If str, it is a placeholder or 'str' literal.

    Returns
    -------
    (str, WeldObject)
        Object id for the data to use in the Weld code and
        the WeldObject updated with the data.

    """
    weld_obj = create_empty_weld_object()
    obj_id = get_weld_obj_id(weld_obj, data)

    return obj_id, weld_obj