code: def _make_ragged(batch_size: int, num_neighbors: int, x: tf.Tensor):
      return tf.RaggedTensor.from_row_lengths(
          x, [num_neighbors] * batch_size
      )
  
imports: import functools
  from typing import Dict, Optional, Text
  import graph_nets
  import neural_structured_learning.configs
  import neural_structured_learning.keras
  import neural_structured_learning.lib
  import sonnet.v2
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _make_ragged(batch_size, num_neighbors, x) and returns: tf