code: async def getNodeByBuid(self, buid):
          '''
          Retrieve a node tuple by binary id.
  
          Args:
              buid (bytes): The binary ID for the node.
  
          Returns:
              Optional[s_node.Node]: The node object or None.
  
          '''
          node = self.livenodes.get(buid)
          if node is not None:
              return node
  
          props = {}
          proplayr = {}
          for layr in self.layers:
              layerprops = await layr.getBuidProps(buid)
              props.update(layerprops)
              proplayr.update({k: layr for k in layerprops})
  
          node = s_node.Node(self, buid, props.items(), proplayr=proplayr)
  
          # Give other tasks a chance to run
          await asyncio.sleep(0)
  
          if node.ndef is None:
              return None
  
          # Add node to my buidcache
          self.buidcache.append(node)
          self.livenodes[buid] = node
          return nodync def getNodeByBuid(self, buid):
          '''
          Retrieve a node tuple by binary id.
  
          Args:
              buid (bytes): The binary ID for the node.
  
          Returns:
              Optional[s_node.Node]: The node object or None.
  
          '''
          node = self.livenodes.get(buid)
          if node is not None:
              return node
  
          props = {}
          proplayr = {}
          for layr in self.layers:
              layerprops = await layr.getBuidProps(buid)
              props.update(layerprops)
              proplayr.update({k: layr for k in layerprops})
  
          node = s_node.Node(self, buid, props.items(), proplayr=proplayr)
  
          # Give other tasks a chance to run
          await asyncio.sleep(0)
  
          if node.ndef is None:
              return None
  
          # Add node to my buidcache
          self.buidcache.append(node)
          self.livenodes[buid] = node
          return node
docs: Retrieve a node tuple by binary id.
  
          Args:
              buid (bytes): The binary ID for the node.
  
          Returns:
              Optional[s_node.Node]: The node object or None.