class_docstr: Creates a composed learner which wraps a set of local agent learners.
class_docstr_tok: ["Creates","a","composed","learner","which","wraps","a","set","of","local","agent","learners","."]
docstr: Return the named variables as a collection of (nested) numpy arrays.
  
  The variable names should be prefixed with the name of the child learners
  using the separator specified in the constructor, e.g. learner1/var.
  
  Args:
    names: args where each name is a string identifying a predefined subset of
      the variables. The variables names should be prefixed with the name of
      the learners using the separator specified in the constructor, e.g.
      learner-var if the separator is -.
  
  Returns:
    A list of (nested) numpy arrays `variables` such that `variables[i]`
    corresponds to the collection named by `names[i]`.
docstr_tok: ["Return","the","named","variables","as","a","collection","of","(","nested",")","numpy","arrays",".","The","variable","names","should","be","prefixed","with","the","name","of","the","child","learners","using","the","separator","specified","in","the","constructor",",","e.g",".","learner1\/var",".","Args",":","names",":","args","where","each","name","is","a","string","identifying","a","predefined","subset","of","the","variables",".","The","variables","names","should","be","prefixed","with","the","name","of","the","learners","using","the","separator","specified","in","the","constructor",",","e.g",".","learner-var","if","the","separator","is","-",".","Returns",":","A","list","of","(","nested",")","numpy","arrays","`","variables","`","such","that","`","variables","[","i","]","`","corresponds","to","the","collection","named","by","`","names","[","i","]","`","."]
code: def get_variables(self, names: List[str]) -> List[types.NestedArray]:
      """Return the named variables as a collection of (nested) numpy arrays.
  
      The variable names should be prefixed with the name of the child learners
      using the separator specified in the constructor, e.g. learner1/var.
  
      Args:
        names: args where each name is a string identifying a predefined subset of
          the variables. The variables names should be prefixed with the name of
          the learners using the separator specified in the constructor, e.g.
          learner-var if the separator is -.
  
      Returns:
        A list of (nested) numpy arrays `variables` such that `variables[i]`
        corresponds to the collection named by `names[i]`.
      """
      variables = []
      for name in names:
          # Note: if separator is not found, learner_name=name, which is OK.
          learner_id, _, variable_name = name.partition(self._separator)
          learner = self._learners[learner_id]
          variables.extend(learner.get_variables([variable_name]))
      return variables
  
file_path: acme/acme/agents/jax/multiagent/decentralized/learner_set.py
imports: import dataclasses
  from typing import Any, Dict, List
  from acme import core
  from acme import types
  from acme.multiagent import types
label_desc: Use image node_id 3 for calling the SynchronousDecentralizedLearnerSet obj's underlying member method code with example usage: obj.get_variables(names) and returns: variables