Something like
```go
lastSlash := strings.LastIndex(nodePath, "/") 
if lastSlash == len(nodePath) {
  return false
}

if nodePath[lastSlash+1] == '_' {
  return true
} 

return false
```