code: def format(self, value):
      if self.floating_dtype:
          if self.sci_mode:
              ret = (
                  ("{{:{}.{}e}}")
                  .format(self.max_width, PRINT_OPTS.precision)
                  .format(value)
              )
  
          elif self.int_mode:
              ret = "{:.0f}".format(value)
              if not (math.isinf(value) or math.isnan(value)):
                  ret += "."
  
          else:
              ret = (
                  ("{{:.{}f}}")
                  .format(PRINT_OPTS.precision)
                  .format(value)
              )
  
      else:
          ret = "{}".format(value)
  
      # return (self.max_width - len(ret)) * " " + ret
      return (2 - len(ret)) * " " + ret
  
file_path: caer/caer/coreten/_tensor_str.py
imports: import math
  import numpy
label_desc: Use image node_id 3 for calling the _Formatter obj's underlying member method code with example usage: obj.format(value) and returns: unknown