docstr: Registers a variable as worker local. Horovod will not perform broadcasting
      operation on this variable.
docstr_tok: ["Registers","a","variable","as","worker","local",".","Horovod","will","not","perform","broadcasting","operation","on","this","variable","."]
code: def register_local_var(self, var):
      """
      Registers a variable as worker local. Horovod will not perform broadcasting
          operation on this variable.
      """
      if version.parse(tf.__version__) < version.parse("2.0.0"):
          raise Exception(
              "Registering local variables for "
              "BroadcastGlobalVariablesCallback is not supported in TF 1.*"
          )
  
      self._local_vars.add(var.ref())
  
imports: from packaging import version
  import warnings
  import horovod.tensorflow
  import tensorflow
label_desc: Use image node_id 2 for calling the BroadcastGlobalVariablesCallbackImpl obj's underlying member method code with example usage: obj.register_local_var(var) without return types