def METHOD_NAME():
    segments_definitions = [
        [
            "A",
            [
                "OTB",
                "OTT",
            ],
            ["27.8.c", "27.8"],
            ["HKE", "SOL"],
        ],
        ["B", ["SDN"], [], []],
        ["C", [], ["27.8.c"], []],
        ["D", [], [], ["HKE"]],
        ["E", ["LL"], None, None],
    ]
    segments = pd.DataFrame(
        data=segments_definitions,
        columns=pd.Index(["segment", "gears", "fao_areas", "species"]),
    )
    segments = unnest_segments.run(segments)
    expected_segments = pd.DataFrame(
        {
            "segment": ["A", "A", "A", "A", "A", "A", "A", "A", "B", "C", "D", "E"],
            "gear": [
                "OTB",
                "OTB",
                "OTB",
                "OTB",
                "OTT",
                "OTT",
                "OTT",
                "OTT",
                "SDN",
                None,
                None,
                "LL",
            ],
            "fao_area": [
                "27.8.c",
                "27.8.c",
                "27.8",
                "27.8",
                "27.8.c",
                "27.8.c",
                "27.8",
                "27.8",
                None,
                "27.8.c",
                None,
                None,
            ],
            "species": [
                "HKE",
                "SOL",
                "HKE",
                "SOL",
                "HKE",
                "SOL",
                "HKE",
                "SOL",
                None,
                None,
                "HKE",
                None,
            ],
        }
    )
    pd.testing.assert_frame_equal(segments, expected_segments)