def pixelToLength(length, pixelSize):
    """Returns the size of a line in nanometers, based on the shape of the image

    Args:

        length (float): The length in pixels.
        pixelSize (float): Length of a pixel in nanometers

    Returns:

        size (float): Length in nanometer.
    """
    return length * pixelSize