code: def get(name):
      """Returns an OpDef for a given `name` or None if the lookup fails."""
      try:
          return _cache[name]
      except KeyError:
          pass
  
      with _cache_lock:
          try:
              # Return if another thread has already populated the cache.
              return _cache[name]
          except KeyError:
              pass
  
          serialized_op_def = _op_def_registry.get(name)
          if serialized_op_def is None:
              return None
  
          op_def = op_def_pb2.OpDef()
          op_def.ParseFromString(serialized_op_def)
          _cache[name] = op_def
          return op_def
  
imports: import threading
  from tensorflow.core.framework import op_def_pb2
  from tensorflow.python import pywrap_tensorflow
  from tensorflow.python.framework import _op_def_registry
label_desc: Use image node_id 1 for calling a global function with example usage: get(name) and returns: _cache, op_def, _cache, None