def _GetInstAllNicNetworkNames(ctx, inst):
  result = []

  for nic in inst.nics:
    name = None
    if nic.network:
      name = ctx.networks[nic.network].name
    result.append(name)

  assert len(result) == len(inst.nics)

  return result
:param background_shape: shape of the background canvas.
dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_GetInstAllNicNetworkNames--crossover with--dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/dataflow/imgaug/paste.py/CenterPaste.__init__