Get the segment associated with @sample
the segment of @sample. The segment remains valid as long as @sample is valid.
See Implementation
Get the segment associated with @sample