code: def test_divide_emoji():
      bold = Style(bold=True)
      italic = Style(italic=True)
      segments = [
          Segment("Hello", bold),
          Segment("💩💩💩", italic),
      ]
  
      assert list(Segment.divide(segments, [7])) == [
          [Segment("Hello", bold), Segment("💩", italic)],
      ]
      assert list(Segment.divide(segments, [8])) == [
          [Segment("Hello", bold), Segment("💩 ", italic)],
      ]
      assert list(Segment.divide(segments, [9])) == [
          [Segment("Hello", bold), Segment("💩💩", italic)],
      ]
      assert list(Segment.divide(segments, [8, 11])) == [
          [Segment("Hello", bold), Segment("💩 ", italic)],
          [Segment(" 💩", italic)],
      ]
      assert list(Segment.divide(segments, [9, 11])) == [
          [Segment("Hello", bold), Segment("💩💩", italic)],
          [Segment("💩", italic)],
      ]
  
imports: from io import StringIO
  import pytest
  from rich.segment import ControlType, Segment, SegmentLines, Segments
  from rich.style import Style
label_desc: Use image node_id 19 for calling a global function with example usage: test_divide_emoji() without return types