# 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/1a9baae9592e0c21336f6e09c891ba75481fd657/libs/sdk-py/langgraph_sdk/stream/subscription.py#L13)