original_docstring: 
      log some basic informations for a sitk image
      :param sitk_img:
      :return:
      
docstring: log some basic informations for a sitk image
docstring_tokens: log some basic informations for a sitk image
code: def describe_sitk(sitk_img):
      """
      log some basic informations for a sitk image
      :param sitk_img:
      :return:
      """
      if isinstance(sitk_img, np.ndarray):
          sitk_img = sitk.GetImageFromArray(sitk_img.astype(np.float32))
  
      logging.info('size: {}'.format(sitk_img.GetSize()))
      logging.info('spacing: {}'.format(sitk_img.GetSpacing()))
      logging.info('origin: {}'.format(sitk_img.GetOrigin()))
      logging.info('direction: {}'.format(sitk_img.GetDirection()))
      logging.info('pixel type: {}'.format(sitk_img.GetPixelIDTypeAsString()))
      logging.info('number of pixel components: {}'.format(sitk_img.GetNumberOfComponentsPerPixel()))
code_tokens: def describe_sitk ( sitk_img ) : if isinstance ( sitk_img , np . ndarray ) : sitk_img = sitk . GetImageFromArray ( sitk_img . astype ( np . float32 ) ) logging . info ( 'size: {}' . format ( sitk_img . GetSize ( ) ) ) logging . info ( 'spacing: {}' . format ( sitk_img . GetSpacing ( ) ) ) logging . info ( 'origin: {}' . format ( sitk_img . GetOrigin ( ) ) ) logging . info ( 'direction: {}' . format ( sitk_img . GetDirection ( ) ) ) logging . info ( 'pixel type: {}' . format ( sitk_img . GetPixelIDTypeAsString ( ) ) ) logging . info ( 'number of pixel components: {}' . format ( sitk_img . GetNumberOfComponentsPerPixel ( ) ) )
short_docstring: log some basic informations for a sitk image
short_docstring_tokens: log some basic informations for a sitk image
comment: """
      log some basic informations for a sitk image
      :param sitk_img:
      :return:
      """