code: def pretty_print_model(devicemodel):
      
      PRETTY_PRINT_MODEL = """Device Model ID: %(deviceModelId)s
          Project ID: %(projectId)s
          Device Type: %(deviceType)s"""
      logging.info(PRETTY_PRINT_MODEL % devicemodel)
      if 'traits' in devicemodel:
          for trait in devicemodel['traits']:
              logging.info('        Trait %s' % trait)
      else:
          logging.info('No traits')
      logging.info('')
docs: Prints out a device model in the terminal by parsing dict.