code: def testRowToExample(self):
      field_to_type = {
          "id": "INTEGER",
          "name": "STRING",
          "can_program": "BOOLEAN",
          "income": "FLOAT",
          "income_history": "FLOAT",
      }
      field_to_data = {
          "id": 1,
          "name": "James",
          "can_program": True,
          "income": 100.2,
          "income_history": [20.5, 30.5, 100.2],
      }
  
      example = utils.row_to_example(
          field_to_type=field_to_type, field_name_to_data=field_to_data
      )
  
      self.assertEqual(example, _EXAMPLE_1)
  
imports: import tensorflow
  from tfx.extensions.google_cloud_big_query import utils
  from google.protobuf import text_format
label_desc: Use image node_id 1 for calling the UtilsTest obj's underlying member method code with example usage: obj.testRowToExample() without return types