def METHOD_NAME(*, coord=None):
    if coord is None:
        dim = 'xx'
        size = 100
        coord = sc.linspace(dim=dim, start=-0.1, stop=4.0, num=size, unit='m')
    else:
        dim = coord.dim
        size = len(coord)
    y = coord.copy()
    y.unit = 'rad'
    y = sc.sin(y)
    rng = np.random.default_rng()
    y.values += 0.1 * rng.normal(size=size)
    return sc.DataArray(y, coords={dim: coord})