code: def block_by_command(cls, command):
          
          for block in cls.blocks:
              if block.has_command(command):
                  return block
docs: Return the block with the given :attr:`command`.
  
          Returns None if the block is not found.