def METHOD_NAME(self):
    if self.coordinates == [(None, None), (None, None)]:
        self.coordinates = [(0, 0), (0, 0)]
    try:
        geo_data = make_geo_lines(*self.coordinates)
    except ValidationError:
        print(f"Track section {self.label} has invalid coordinates:")
        print(self.coordinates)
        raise
    return infra.TrackSection(
        id=self.label,
        length=self.length,
        slopes=[slope.METHOD_NAME() for slope in self.slopes],
        curves=[curve.METHOD_NAME() for curve in self.curves],
        **geo_data,
        extensions={
            "sncf": {
                "line_code": self.line_code,
                "line_name": self.line_name,
                "track_number": self.track_number,
                "track_name": self.track_name,
            }
        },
    )