original_docstring:  from a given milimeter, creates an image
          consisting of datapoints with 255 mm range
      
docstring: from a given milimeter, creates an image
  consisting of datapoints with 255 mm range
docstring_tokens: from a given milimeter creates an image consisting of datapoints with 255 mm range
code: def create_accurate_depth_image(depth_data: np.ndarray, from_mm: int):
      """ from a given milimeter, creates an image
          consisting of datapoints with 255 mm range
      """
      depth_data_translated = depth_data - from_mm
  
      # use the original depth data as a mask
      depth_data_translated[depth_data < from_mm] = 0
      depth_data_translated[depth_data > from_mm+255] = 255
  
      return depth_data_translated.astype(np.uint8)
code_tokens: def create_accurate_depth_image ( depth_data : np . ndarray , from_mm : int ) : depth_data_translated = depth_data - from_mm depth_data_translated [ depth_data < from_mm ] = 0 depth_data_translated [ depth_data > from_mm + 255 ] = 255 return depth_data_translated . astype ( np . uint8 )
short_docstring: from a given milimeter, creates an image
  consisting of datapoints with 255 mm range
short_docstring_tokens: from a given milimeter creates an image consisting of datapoints with 255 mm range
comment: """ from a given milimeter, creates an image
          consisting of datapoints with 255 mm range
      """$SEP$# use the original depth data as a mask