# normalize_segment

> **Function** in `langgraph_sdk`

📖 [View in docs](https://reference.langchain.com/python/langgraph-sdk/stream/subscription/normalize_segment)

Strip the dynamic suffix after `:` from a namespace segment.

## Signature

```python
normalize_segment(
    segment: str,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/55b0e36c51d2922b11640b980fcfca1064243a96/libs/sdk-py/langgraph_sdk/stream/subscription.py#L13)