def METHOD_NAME(obj: MeshObject, placed_objects: List[MeshObject], min_distance: float, max_distance: float) \
        -> bool:
    """ Check if object is not too close or too far from previous objects.
    :param obj: Object for which the check is carried out.
    :param placed_objects: A list of already placed objects that should be used for checking spacing.
    :param min_distance: Minimum distance to the closest other object from placed_objects. Center to center.
    :param max_distance: Maximum distance to the closest other object from placed_objects. Center to center.
    :return: True, if the spacing is correct
    """
    closest_distance = None
    for already_placed in placed_objects:
        distance = np.linalg.norm(already_placed.get_location() - obj.get_location())
        if closest_distance is None or distance < closest_distance:
            closest_distance = distance
    return closest_distance is None or (min_distance <= closest_distance <= max_distance)