original_docstring: Return pretty-formatted item.
docstring: Return pretty-formatted item.
docstring_tokens: Return pretty - formatted item .
code: def format(item):
          """Return pretty-formatted item."""
  
          item_schema = [
              ('id', 'id', None),
              ('status', 'state', None),
              ('code', 'status_code', None),
              ('changed', 'status_timestamp', None),
              ('zone', 'az', None),
              ('subnet', 'subnet', None),
              ('type', 'instance_type', None),
              ('instance_id', 'instance_id', None),
              ('ami_id', 'ami_id', None),
              ('hostname', 'hostname', None),
              ('launch', 'instance_launch', None),
              ('state', 'instance_status', None),
          ]
  
          list_schema = item_schema
  
          format_item = tablefmt.make_dict_to_table(item_schema)
          format_list = tablefmt.make_list_to_table(list_schema)
  
          if isinstance(item, list):
              return format_list(item)
          else:
              return format_item(item)
code_tokens: def format ( item ) : item_schema = [ ( 'id' , 'id' , None ) , ( 'status' , 'state' , None ) , ( 'code' , 'status_code' , None ) , ( 'changed' , 'status_timestamp' , None ) , ( 'zone' , 'az' , None ) , ( 'subnet' , 'subnet' , None ) , ( 'type' , 'instance_type' , None ) , ( 'instance_id' , 'instance_id' , None ) , ( 'ami_id' , 'ami_id' , None ) , ( 'hostname' , 'hostname' , None ) , ( 'launch' , 'instance_launch' , None ) , ( 'state' , 'instance_status' , None ) , ] list_schema = item_schema format_item = tablefmt . make_dict_to_table ( item_schema ) format_list = tablefmt . make_list_to_table ( list_schema ) if isinstance ( item , list ) : return format_list ( item ) else : return format_item ( item )
short_docstring: Return pretty-formatted item.
short_docstring_tokens: Return pretty - formatted item .
comment: """Return pretty-formatted item."""