class_docstr: Class to hold unit data for the builder.
docstr: Return the unit represented as a numpy array.
docstr_tok: ["Return","the","unit","represented","as","a","numpy","array","."]
code: def as_array(self):
      """Return the unit represented as a numpy array."""
      return np.array(
          [
              self.unit_type,
              self.player_relative,
              self.health,
              self.shields,
              self.energy,
              self.transport_slots_taken,
              int(self.build_progress * 100),
          ],
          dtype=np.int32,
      )
  
imports: import math
  import numpy
  from pysc2.lib import features
  from s2clientprotocol import raw_pb2
  from s2clientprotocol import sc2api_pb2
  from s2clientprotocol import score_pb2
label_desc: Use image node_id 3 for calling the Unit obj's underlying member method code with example usage: obj.as_array() and returns: np