code: def _sensor_name_to_int(row):
      result_row = dict(**row)
      result_row["sensor_name"] = 0
      return result_row
  
imports: from decimal import Decimal
  from packaging import version
  import numpy
  import pyarrow
  import pytest
  import torch
  from petastorm import make_reader, TransformSpec, make_batch_reader
  from petastorm.pytorch import _sanitize_pytorch_types, DataLoader, BatchedDataLoader, decimal_friendly_collate, InMemBatchedDataLoader, _load_rows_into_mem
  from petastorm.tests.test_common import TestSchema
label_desc: Use image node_id 2 for calling a global function with example usage: _sensor_name_to_int(row) and returns: result_row