code: def encode(x: str) -> np.ndarray:
      return np.array([ord(s) for s in x])
  
imports: from collections.abc import Iterator, Mapping
  import numpy
  import tensorflow.compat.v2
  import tensorflow_datasets
label_desc: Use image node_id 3 for calling a global function with example usage: encode(x) and returns: np